Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

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

Open
bfitzpat opened this issue May 14, 2020 · 0 comments

Comments

@bfitzpat
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant