|
1 | 1 | import * as crypto from 'crypto'; |
2 | 2 | import * as path from 'path'; |
3 | | -import * as cli from './cli'; |
4 | 3 | import * as Sarif from 'sarif'; |
5 | | -import { parseSarifLocation, parseSarifPlainTextMessage } from './sarif-utils'; |
6 | | -import { FivePartLocation, LocationValue, ResolvableLocationValue, WholeFileLocation, tryGetResolvableLocation, LocationStyle } from 'semmle-bqrs'; |
| 4 | +import { FivePartLocation, LocationStyle, LocationValue, ResolvableLocationValue, tryGetResolvableLocation, WholeFileLocation } from 'semmle-bqrs'; |
7 | 5 | import { DisposableObject } from 'semmle-vscode-utils'; |
8 | 6 | import * as vscode from 'vscode'; |
9 | 7 | import { Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, languages, Location, Range, Uri, window as Window, workspace } from 'vscode'; |
| 8 | +import * as cli from './cli'; |
10 | 9 | import { CodeQLCliServer } from './cli'; |
11 | 10 | import { DatabaseItem, DatabaseManager } from './databases'; |
12 | 11 | import { showAndLogErrorMessage } from './helpers'; |
13 | 12 | import { assertNever } from './helpers-pure'; |
14 | | -import { FromResultsViewMsg, Interpretation, IntoResultsViewMsg, ResultsPaths, SortedResultSetInfo, SortedResultsMap, INTERPRETED_RESULTS_PER_RUN_LIMIT, QueryMetadata } from './interface-types'; |
| 13 | +import { FromResultsViewMsg, Interpretation, INTERPRETED_RESULTS_PER_RUN_LIMIT, IntoResultsViewMsg, QueryMetadata, ResultsPaths, SortedResultSetInfo, SortedResultsMap } from './interface-types'; |
15 | 14 | import { Logger } from './logging'; |
16 | 15 | import * as messages from './messages'; |
17 | | -import { QueryInfo, tmpDir } from './run-queries'; |
18 | 16 | import { CompletedQuery, interpretResults } from './query-results'; |
| 17 | +import { QueryInfo, tmpDir } from './run-queries'; |
| 18 | +import { parseSarifLocation, parseSarifPlainTextMessage } from './sarif-utils'; |
19 | 19 |
|
20 | 20 | /** |
21 | 21 | * interface.ts |
@@ -291,7 +291,7 @@ export class InterfaceManager extends DisposableObject { |
291 | 291 |
|
292 | 292 | private async interpretResultsInfo(query: QueryInfo): Promise<Interpretation | undefined> { |
293 | 293 | let interpretation: Interpretation | undefined = undefined; |
294 | | - if (query.hasInterpretedResults() |
| 294 | + if (await query.hasInterpretedResults() |
295 | 295 | && query.quickEvalPosition === undefined // never do results interpretation if quickEval |
296 | 296 | ) { |
297 | 297 | try { |
|
0 commit comments