Skip to content

Extension editor's Features::Commands table doesn't handle commandPalette menu context well #229258

@gjsjohnmurray

Description

@gjsjohnmurray

Type: Bug

For example, view the information on the built-in Git extension.

A command that doesn't appear on the Command Palette (because the extension's package.json explicitly qualifies its contribution with a "when": "false") displays commandPalette in the Menu Contexts column (e.g. git.api.getRepositories)

image

image

Conversely a command that does appear has no commandPalette entry (e.g. git.checkoutDetached)

image

The extension editor should handle that commands appear on the palette by default (no entry required in package.json) and that "when": "false" is the recommended way of hiding commands that shouldn't / can't be used from Command Palette.

VS Code version: Code - Insiders 1.94.0-insider (527e41f, 2024-09-20T05:03:57.400Z)
OS version: Windows_NT x64 10.0.22631
Modes:

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions