File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/log-insights Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,15 +75,13 @@ export class LogScannerService extends DisposableObject {
7575 ) : Promise < void > {
7676 this . diagnosticCollection . clear ( ) ;
7777
78- if ( ( query === undefined ) || ( query . t !== 'local' ) ) {
78+ if ( ( query === undefined ) || ( query . t !== 'local' ) || ( query . jsonEvalLogSummaryLocation === undefined ) ) {
7979 return ;
8080 }
8181
82- if ( ( query !== undefined ) && ( query . t === 'local' ) && query . jsonEvalLogSummaryLocation ) {
83- const diagnostics = await this . scanLog ( query . jsonEvalLogSummaryLocation , query . evalLogSummarySymbolsLocation ) ;
84- const uri = Uri . file ( query . evalLogSummaryLocation ! ) ;
85- this . diagnosticCollection . set ( uri , diagnostics ) ;
86- }
82+ const diagnostics = await this . scanLog ( query . jsonEvalLogSummaryLocation , query . evalLogSummarySymbolsLocation ) ;
83+ const uri = Uri . file ( query . evalLogSummaryLocation ! ) ;
84+ this . diagnosticCollection . set ( uri , diagnostics ) ;
8785 }
8886
8987 /**
You can’t perform that action at this time.
0 commit comments