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:
parent
4ed5a231c1
commit
30a8de8e06
1 changed files with 14 additions and 0 deletions
14
package.json
14
package.json
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue