Skip to content

Commit e2d125a

Browse files
committed
Fix broken raw queries.
1 parent e345425 commit e2d125a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

extensions/ql-vscode/src/interface.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ export class InterfaceManager extends DisposableObject {
294294
return;
295295
}
296296

297-
const interpretation = await this.interpretResultsInfo(
297+
this._interpretation = undefined;
298+
const interpretationPage = await this.interpretResultsInfo(
298299
results.query,
299300
results.interpretedResultsSortState
300301
);
@@ -372,7 +373,7 @@ export class InterfaceManager extends DisposableObject {
372373

373374
await this.postMessage({
374375
t: 'setState',
375-
interpretation,
376+
interpretation: interpretationPage,
376377
origResultsPaths: results.query.resultsPaths,
377378
resultsPath: this.convertPathToWebviewUri(
378379
results.query.resultsPaths.resultsPath
@@ -580,7 +581,7 @@ export class InterfaceManager extends DisposableObject {
580581
);
581582
}
582583
}
583-
return this.getPageOfInterpretedResults(0);
584+
return this._interpretation && this.getPageOfInterpretedResults(0);
584585
}
585586

586587
private async showResultsAsDiagnostics(

0 commit comments

Comments
 (0)