@@ -759,13 +759,15 @@ export class QueryHistoryManager extends DisposableObject {
759759 singleItem : QueryHistoryInfo ,
760760 multiSelect : QueryHistoryInfo [ ]
761761 ) {
762- // Local queries only
763- if ( ! this . assertSingleQuery ( multiSelect ) || singleItem ?. t !== 'local' ) {
762+ const { finalSingleItem, finalMultiSelect } = this . determineSelection ( singleItem , multiSelect ) ;
763+
764+ // Only applicable to an individual local query
765+ if ( ! this . assertSingleQuery ( finalMultiSelect ) || ! finalSingleItem || finalSingleItem . t !== 'local' ) {
764766 return ;
765767 }
766768
767- if ( singleItem . evalLogLocation ) {
768- await this . tryOpenExternalFile ( singleItem . evalLogLocation ) ;
769+ if ( finalSingleItem . evalLogLocation ) {
770+ await this . tryOpenExternalFile ( finalSingleItem . evalLogLocation ) ;
769771 } else {
770772 this . warnNoEvalLog ( ) ;
771773 }
@@ -775,17 +777,18 @@ export class QueryHistoryManager extends DisposableObject {
775777 singleItem : QueryHistoryInfo ,
776778 multiSelect : QueryHistoryInfo [ ]
777779 ) {
778- // Local queries only
779- if ( ! this . assertSingleQuery ( multiSelect ) || singleItem ?. t !== 'local' ) {
780+ const { finalSingleItem, finalMultiSelect } = this . determineSelection ( singleItem , multiSelect ) ;
781+
782+ // Only applicable to an individual local query
783+ if ( ! this . assertSingleQuery ( finalMultiSelect ) || ! finalSingleItem || finalSingleItem . t !== 'local' ) {
780784 return ;
781785 }
782786
783- if ( singleItem . evalLogLocation ) {
784- const summaryLocation = singleItem . evalLogLocation + '.summary' ;
785- if ( ! fs . existsSync ( summaryLocation ) ) {
786- await this . qs . cliServer . generateLogSummary ( singleItem . evalLogLocation , summaryLocation ) ;
787+ if ( finalSingleItem . evalLogLocation ) {
788+ if ( ! fs . existsSync ( finalSingleItem . evalLogSummaryLocation ) ) {
789+ await this . qs . cliServer . generateLogSummary ( finalSingleItem . evalLogLocation , finalSingleItem . evalLogSummaryLocation ) ;
787790 }
788- await this . tryOpenExternalFile ( summaryLocation ) ;
791+ await this . tryOpenExternalFile ( finalSingleItem . evalLogSummaryLocation ) ;
789792 } else {
790793 this . warnNoEvalLog ( ) ;
791794 }
0 commit comments