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
14
package.json
14
package.json
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user