File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 597597 "command" : " codeQLQueries.runVariantAnalysisContextMenu" ,
598598 "title" : " Run against variant analysis repositories"
599599 },
600+ {
601+ "command" : " codeQLQueries.createQuery" ,
602+ "title" : " Create query" ,
603+ "icon" : " $(new-file)"
604+ },
600605 {
601606 "command" : " codeQLVariantAnalysisRepositories.openConfigFile" ,
602607 "title" : " Open database configuration file" ,
10061011 "when" : " view == codeQLDatabases" ,
10071012 "group" : " navigation"
10081013 },
1014+ {
1015+ "command" : " codeQLQueries.createQuery" ,
1016+ "when" : " view == codeQLQueries" ,
1017+ "group" : " navigation"
1018+ },
10091019 {
10101020 "command" : " codeQLQueryHistory.sortByName" ,
10111021 "when" : " view == codeQLQueryHistory" ,
12901300 "command" : " codeQLQueries.runLocalQueriesFromPanel" ,
12911301 "when" : " false"
12921302 },
1303+ {
1304+ "command" : " codeQLQueries.createQuery" ,
1305+ "when" : " false"
1306+ },
12931307 {
12941308 "command" : " codeQL.runLocalQueryFromFileTab" ,
12951309 "when" : " false"
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ export type LocalQueryCommands = {
135135 "codeQLQueries.runLocalQueryContextMenu" : TreeViewContextSingleSelectionCommandFunction < QueryTreeViewItem > ;
136136 "codeQLQueries.runLocalQueriesContextMenu" : TreeViewContextSingleSelectionCommandFunction < QueryTreeViewItem > ;
137137 "codeQLQueries.runLocalQueriesFromPanel" : TreeViewContextSingleSelectionCommandFunction < QueryTreeViewItem > ;
138+ "codeQLQueries.createQuery" : ( ) => Promise < void > ;
138139 "codeQL.runLocalQueryFromFileTab" : ( uri : Uri ) => Promise < void > ;
139140 "codeQL.runQueries" : ExplorerSelectionCommandFunction < Uri > ;
140141 "codeQL.quickEval" : ( uri : Uri ) => Promise < void > ;
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ export class LocalQueries extends DisposableObject {
9090 this . runQueriesFromQueriesPanel . bind ( this ) ,
9191 "codeQLQueries.runLocalQueriesFromPanel" :
9292 this . runQueriesFromQueriesPanel . bind ( this ) ,
93+ "codeQLQueries.createQuery" : this . createSkeletonQuery . bind ( this ) ,
9394 "codeQL.runLocalQueryFromFileTab" : this . runQuery . bind ( this ) ,
9495 "codeQL.runQueries" : createMultiSelectionCommand (
9596 this . runQueries . bind ( this ) ,
You can’t perform that action at this time.
0 commit comments