File tree Expand file tree Collapse file tree 5 files changed +13
-3
lines changed
Expand file tree Collapse file tree 5 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 405405 "command" : " codeQL.runQueryContextEditor" ,
406406 "title" : " CodeQL: Run Query on Selected Database"
407407 },
408+ {
409+ "command" : " codeQL.runLocalQueryFromQueriesPanel" ,
410+ "title" : " CodeQL: Run Query on Selected Database"
411+ },
408412 {
409413 "command" : " codeQL.debugQuery" ,
410414 "title" : " CodeQL: Debug Query"
11641168 "command" : " codeQL.runQuery" ,
11651169 "when" : " resourceLangId == ql && resourceExtname == .ql"
11661170 },
1171+ {
1172+ "command" : " codeQL.runLocalQueryFromQueriesPanel" ,
1173+ "when" : " false"
1174+ },
11671175 {
11681176 "command" : " codeQL.runQueryContextEditor" ,
11691177 "when" : " false"
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ export type LocalQueryCommands = {
130130 "codeQL.runQueryOnMultipleDatabasesContextEditor" : (
131131 uri ?: Uri ,
132132 ) => Promise < void > ;
133+ "codeQL.runLocalQueryFromQueriesPanel" : ( uri ?: Uri ) => Promise < void > ;
133134 "codeQL.runQueries" : ExplorerSelectionCommandFunction < Uri > ;
134135 "codeQL.quickEval" : ( uri : Uri ) => Promise < void > ;
135136 "codeQL.quickEvalContextEditor" : ( uri : Uri ) => Promise < void > ;
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ export class LocalQueries extends DisposableObject {
100100 this . runQueryOnMultipleDatabases . bind ( this ) ,
101101 "codeQL.runQueryOnMultipleDatabasesContextEditor" :
102102 this . runQueryOnMultipleDatabases . bind ( this ) ,
103+ "codeQL.runLocalQueryFromQueriesPanel" : this . runQuery . bind ( this ) ,
103104 "codeQL.runQueries" : createMultiSelectionCommand (
104105 this . runQueries . bind ( this ) ,
105106 ) ,
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export class QueriesModule extends DisposableObject {
5555 this . push ( queryDiscovery ) ;
5656 void queryDiscovery . initialRefresh ( ) ;
5757
58- const queriesPanel = new QueriesPanel ( app , queryDiscovery ) ;
59- this . push ( queriesPanel ) ;
58+ this . queriesPanel = new QueriesPanel ( app , queryDiscovery ) ;
59+ this . push ( this . queriesPanel ) ;
6060 }
6161}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export class QueriesPanel extends DisposableObject {
3131 queryTreeViewItem : QueryTreeViewItem ,
3232 ) : Promise < void > {
3333 await this . app . commands . execute (
34- "codeQL.runQuery " ,
34+ "codeQL.runLocalQueryFromQueriesPanel " ,
3535 vscode . Uri . parse ( queryTreeViewItem . path ) ,
3636 ) ;
3737 }
You can’t perform that action at this time.
0 commit comments