Skip to content

Commit 4e32a10

Browse files
committed
Make 'log' field non-nullable again.
1 parent fa3e3ff commit 4e32a10

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

extensions/ql-vscode/src/query-history/store/query-history-local-query-dto-mapper.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@ export function mapLocalQueryItemToDomainModel(
3232
localQuery.failureReason,
3333
localQuery.completedQuery &&
3434
mapCompletedQueryInfoToDomainModel(localQuery.completedQuery),
35-
{
36-
log: localQuery.evalLogLocation,
37-
humanReadableSummary: localQuery.evalLogSummaryLocation,
38-
jsonSummary: localQuery.jsonEvalLogSummaryLocation,
39-
summarySymbols: localQuery.evalLogSummarySymbolsLocation,
40-
endSummary: undefined,
41-
},
35+
localQuery.evalLogLocation
36+
? {
37+
log: localQuery.evalLogLocation,
38+
humanReadableSummary: localQuery.evalLogSummaryLocation,
39+
jsonSummary: localQuery.jsonEvalLogSummaryLocation,
40+
summarySymbols: localQuery.evalLogSummarySymbolsLocation,
41+
endSummary: undefined,
42+
}
43+
: undefined,
4244
);
4345
}
4446

extensions/ql-vscode/src/query-results.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,7 @@ export class LocalQueryInfo {
200200
private cancellationSource?: CancellationTokenSource, // used to cancel in progress queries
201201
public failureReason?: string,
202202
public completedQuery?: CompletedQueryInfo,
203-
public evalutorLogPaths: EvaluatorLogPaths = {
204-
log: undefined,
205-
humanReadableSummary: undefined,
206-
endSummary: undefined,
207-
jsonSummary: undefined,
208-
summarySymbols: undefined,
209-
},
203+
public evalutorLogPaths?: EvaluatorLogPaths,
210204
) {
211205
/**/
212206
}

extensions/ql-vscode/src/run-queries-shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import type { ProgressCallback } from "./common/vscode/progress";
4545
* Holds the paths to the various structured log summary files generated for a query evaluation.
4646
*/
4747
export interface EvaluatorLogPaths {
48-
log: string | undefined;
48+
log: string;
4949
humanReadableSummary: string | undefined;
5050
endSummary: string | undefined;
5151
jsonSummary: string | undefined;

0 commit comments

Comments
 (0)