Skip to content

Limiting a commandPallette contribution to a webviewId does not work #186098

@timheuer

Description

@timheuer

commandPalette with a when condition attaching to a webViewId does not show the command

Scenario: Only want a command to be in the command pallette when a specific webview is active/shown. The below is not working and shows no command.

        {
          "command": "resx-editor.addNewResource",
          "when": "webviewId == 'resx-editor.editor'"
        }

Metadata

Metadata

Assignees

Labels

*dev-questionVS Code Extension Development Question

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions