From c70bb8883d9156cfaa3abc3af946c2bc4eff5ea8 Mon Sep 17 00:00:00 2001 From: EPMatt Date: Fri, 5 Apr 2019 23:07:12 +0200 Subject: [PATCH] restricted commands visibility --- package.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/package.json b/package.json index 8182cc7..60f12a4 100644 --- a/package.json +++ b/package.json @@ -130,6 +130,24 @@ } ], "menus": { + "commandPalette": [ + { + "command": "extension.queryFileSQL", + "when": "editorLangId == 'sql'" + }, + { + "command": "extension.queryFileSQLToCSV", + "when": "editorLangId == 'sql'" + }, + { + "command": "extension.querySelectedSQL", + "when": "editorHasSelection && editorLangId == 'sql'" + }, + { + "command": "extension.querySelectedSQLToCSV", + "when": "editorHasSelection && editorLangId == 'sql'" + } + ], "editor/context": [ { "command": "extension.querySelectedSQL",