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
1 changed files with 14 additions and 0 deletions

View File

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