File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 634634 "title" : " Create query" ,
635635 "icon" : " $(new-file)"
636636 },
637+ {
638+ "command" : " codeQL.createQueryFromPrompt" ,
639+ "title" : " CodeQL: Create query from prompt"
640+ },
637641 {
638642 "command" : " codeQLVariantAnalysisRepositories.openConfigFile" ,
639643 "title" : " Open database configuration file" ,
13461350 "command" : " codeQLQueries.createQuery" ,
13471351 "when" : " false"
13481352 },
1353+ {
1354+ "command" : " codeQL.createQueryFromPrompt" ,
1355+ "when" : " false"
1356+ },
13491357 {
13501358 "command" : " codeQL.runLocalQueryFromFileTab" ,
13511359 "when" : " false"
Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ export type LocalQueryCommands = {
146146 "codeQL.quickQuery" : ( ) => Promise < void > ;
147147 "codeQL.getCurrentQuery" : ( ) => Promise < string > ;
148148 "codeQL.createQuery" : ( ) => Promise < void > ;
149+ "codeQL.createQueryFromPrompt" : ( ) => Promise < void > ;
149150} ;
150151
151152// Debugger commands
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ export class LocalQueries extends DisposableObject {
119119 return this . getCurrentQuery ( true ) ;
120120 } ,
121121 "codeQL.createQuery" : this . createSkeletonQuery . bind ( this ) ,
122+ "codeQL.createQueryFromPrompt" : this . createSkeletonQuery . bind ( this ) ,
122123 } ;
123124 }
124125
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export async function displayQuickQuery(
9696 updateQuickQueryDir ( queriesDir , workspaceFolders . length , 0 ) ;
9797 }
9898 if ( quickQueryPrompt === createQueryOption ) {
99- await app . queryServerCommands . execute ( "codeQL.createQuery " ) ;
99+ await app . queryServerCommands . execute ( "codeQL.createQueryFromPrompt " ) ;
100100 }
101101 return ;
102102 }
You can’t perform that action at this time.
0 commit comments