Skip to content

Commit cc0e850

Browse files
committed
Ensure the logFileLocation is set
`logFileLocation` was not set after a query finishes running. I don't know when this bug was introduced. I think it goes as far back as the refactor to remove the old query server.
1 parent fca68ed commit cc0e850

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ export class CompletedQueryInfo implements QueryWithResults {
7474
* Map from result set name to SortedResultSetInfo.
7575
*/
7676
public sortedResultsInfo: Record<string, SortedResultSetInfo> = {},
77-
) {}
77+
) {
78+
// The log path is only set when loading from the query history.
79+
this.logFileLocation = logFileLocation ?? this.query.logPath;
80+
}
7881

7982
setResultCount(value: number) {
8083
this.resultCount = value;

0 commit comments

Comments
 (0)