Conditionally Hide Commands

Shows XML -/XQuery-specific commands only for those languages.
This does not apply to xmlTools.formatAsXml.

Closes #164
This commit is contained in:
Josh Johnson 2018-05-27 23:29:53 -04:00
parent 4ed5a231c1
commit 30a8de8e06

View File

@ -186,6 +186,20 @@
} }
], ],
"menus": { "menus": {
"commandPalette": [
{
"command": "xmlTools.evaluateXPath",
"when": "editorLangId == xml"
},
{
"command": "xmlTools.executeXQuery",
"when": "editorLangId == xquery"
},
{
"command": "xmlTools.minifyXml",
"when": "editorLangId == xml"
}
],
"editor/context": [ "editor/context": [
{ {
"command": "xmlTools.minifyXml", "command": "xmlTools.minifyXml",