Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.
This repository was 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

@bfitzpat

Description

@bfitzpat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions