File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
extensions/ql-vscode/src/remote-queries Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,14 @@ export class VariantAnalysisManager extends DisposableObject implements VariantA
6161 // In this case, the variant analysis was deleted from disk, most likely because
6262 // it was purged by another workspace.
6363 this . _onVariantAnalysisRemoved . fire ( variantAnalysis ) ;
64- } else if ( status === QueryStatus . InProgress ) {
65- // In this case, last time we checked, the query was still in progress.
66- // We need to setup the monitor to check for completion.
67- await commands . executeCommand ( 'codeQL.monitorVariantAnalysis' , variantAnalysis ) ;
64+ } else {
65+ this . variantAnalyses . set ( variantAnalysis . id , variantAnalysis ) ;
66+ await this . getView ( variantAnalysis . id ) ?. updateView ( variantAnalysis ) ;
67+ if ( status === QueryStatus . InProgress ) {
68+ // In this case, last time we checked, the query was still in progress.
69+ // We need to setup the monitor to check for completion.
70+ await commands . executeCommand ( 'codeQL.monitorVariantAnalysis' , variantAnalysis ) ;
71+ }
6872 }
6973 }
7074
You can’t perform that action at this time.
0 commit comments