Skip to content

Duplicate commands registered  #3320

Closed
@Charles-Gagnon

Description

@Charles-Gagnon

Upon startup see these errors in the log :

[ms-vscode.powershell]: Command `workbench.action.positionPanelLeft` appears multiple times in the `commands` section.
[ms-vscode.powershell]: Command `workbench.action.positionPanelBottom` appears multiple times in the `commands` section.

The reason for this is because you define the commands here : https://github.com/PowerShell/vscode-powershell/blob/master/package.json#L285

using the command IDs workbench.action.positionPanelLeft and workbench.action.positionPanelBottom. But these are the command IDs used by VS Code : https://github.com/microsoft/vscode/blob/main/src/vs/workbench/browser/parts/panel/panelActions.ts#L100

so it sees that there's duplicate commands and throws the error (which admittedly isn't actually accurate in this case).

Given that it doesn't seem like you actually try to define this action in your extension currently these commands should be removed from your package.json since currently they aren't actually doing anything. (or given a different command ID and then just have that command call the workbench one if you still want this to show up in the contributions section of the gallery)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions