Skip to content

Commit 95200b2

Browse files
committed
Only enable new commands in "canary" mode
1 parent 3c678ca commit 95200b2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

extensions/ql-vscode/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,13 +663,17 @@
663663
}
664664
],
665665
"commandPalette": [
666+
{
667+
"command": "codeQL.authenticateToGitHub",
668+
"when": "config.codeQL.canary"
669+
},
666670
{
667671
"command": "codeQL.runQuery",
668672
"when": "resourceLangId == ql && resourceExtname == .ql"
669673
},
670674
{
671675
"command": "codeQL.runRemoteQuery",
672-
"when": "editorLangId == ql && resourceExtname == .ql"
676+
"when": "config.codeQL.canary && editorLangId == ql && resourceExtname == .ql"
673677
},
674678
{
675679
"command": "codeQL.runQueries",
@@ -815,7 +819,7 @@
815819
},
816820
{
817821
"command": "codeQL.runRemoteQuery",
818-
"when": "editorLangId == ql && resourceExtname == .ql"
822+
"when": "config.codeQL.canary && editorLangId == ql && resourceExtname == .ql"
819823
},
820824
{
821825
"command": "codeQL.viewAst",

0 commit comments

Comments
 (0)