Skip to content

Debug toolbar contributed action visibility not updated on context key change #69398

@RMacfarlane

Description

@RMacfarlane

Issue Type: Bug

Testing #69196

When setting a when clause on the command, it seems to be evaluated when the toolbar is shown, but then not revaluated when the underlying context key updates.

		"commands": [
			{
				"command": "extension.helloWorld",
				"title": "Hello World"
			}
		],
		"menus": {
			"debug/toolbar": [
				{
					"command": "extension.helloWorld",
					"group": "navigation",
					"when": "inZenMode"
				}
			]
		}

For this snippet, if starting debugging while in zen mode the command is shown, but toggling zen mode after that does not remove the command.

VS Code version: Code - Insiders 1.32.0-insider (393b48d, 2019-02-25T01:33:51.804Z)
OS version: Darwin x64 18.2.0

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions