File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export interface InitialQueryInfo {
4141 readonly queryText : string ; // text of the selected file, or the selected text when doing quick eval
4242 readonly isQuickQuery : boolean ;
4343 readonly isQuickEval : boolean ;
44+ readonly isQuickEvalCount ?: boolean ; // Missing is false for backwards compatibility
4445 readonly quickEvalPosition ?: messages . Position ;
4546 readonly queryPath : string ;
4647 readonly databaseInfo : DatabaseInfo ;
@@ -268,7 +269,9 @@ export class LocalQueryInfo {
268269 * - Otherwise, return the query file name.
269270 */
270271 getQueryName ( ) {
271- if ( this . initialInfo . quickEvalPosition ) {
272+ if ( this . initialInfo . isQuickEvalCount ) {
273+ return `Quick evaluation counts of ${ this . getQueryFileName ( ) } ` ;
274+ } else if ( this . initialInfo . isQuickEval ) {
272275 return `Quick evaluation of ${ this . getQueryFileName ( ) } ` ;
273276 } else if ( this . completedQuery ?. query . metadata ?. name ) {
274277 return this . completedQuery ?. query . metadata ?. name ;
Original file line number Diff line number Diff line change @@ -591,9 +591,12 @@ export async function createInitialQueryInfo(
591591 databaseInfo : DatabaseInfo ,
592592) : Promise < InitialQueryInfo > {
593593 const isQuickEval = selectedQuery . quickEval !== undefined ;
594+ const isQuickEvalCount =
595+ selectedQuery . quickEval ?. quickEvalCount !== undefined ;
594596 return {
595597 queryPath : selectedQuery . queryPath ,
596598 isQuickEval,
599+ isQuickEvalCount,
597600 isQuickQuery : isQuickQueryPath ( selectedQuery . queryPath ) ,
598601 databaseInfo,
599602 id : `${ basename ( selectedQuery . queryPath ) } -${ nanoid ( ) } ` ,
You can’t perform that action at this time.
0 commit comments