vscode-didact icon indicating copy to clipboard operation
vscode-didact copied to clipboard

Hide didact validation command except where we need it in the command palette

Open bfitzpat opened this issue 5 years ago • 0 comments

Validate command doesn't need to be active for everything in the command palette. Should be able to filter it out so it only shows up with the didact webview or the editor.

We got this working for the editor:

			"commandPalette": [
				{
					"command": "vscode.didact.verifyCommands",
					"when": "resourceFilename =~ /[.](didact)[.](md|adoc)$/"
				}
			],

But we need something similar on the webview side and don't have that yet.

@apupier found this:

unless they have implemented since that time, seems a custom context needs to provided https://stackoverflow.com/questions/52142903/is-there-any-contexts-when-specified-webview-panel-is-active-in-vscode-extension

bfitzpat avatar May 14 '20 18:05 bfitzpat