From 30a8de8e0650a0fc2aa0b26125ecf45af7bcb303 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Sun, 27 May 2018 23:29:53 -0400 Subject: [PATCH] Conditionally Hide Commands Shows XML -/XQuery-specific commands only for those languages. This does not apply to xmlTools.formatAsXml. Closes #164 --- package.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/package.json b/package.json index 8435583..89a26ea 100644 --- a/package.json +++ b/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",