Skip to content

Commit 977b061

Browse files
committed
Fix error from "Open Query Results" button
1 parent 560f694 commit 977b061

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

extensions/ql-vscode/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Add the _Add Database Source to Workspace_ command to the right-click context menu in the databases view. This lets users re-add a database's source folder to the workspace and browse the source code. [#891](https://github.com/github/vscode-codeql/pull/891)
66
- Fix markdown rendering in the description of the `codeQL.cli.executablePath` setting. [#908](https://github.com/github/vscode-codeql/pull/908)
7+
- Fix the _Open Query Results_ command in the query history view. [#909](https://github.com/github/vscode-codeql/pull/909)
78

89
## 1.5.1 - 23 June 2021
910

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,13 +499,13 @@ export class QueryHistoryManager extends DisposableObject {
499499
if (
500500
prevItemClick !== undefined &&
501501
now.valueOf() - prevItemClick.time.valueOf() < DOUBLE_CLICK_TIME &&
502-
singleItem == prevItemClick.item
502+
finalSingleItem == prevItemClick.item
503503
) {
504504
// show original query file on double click
505-
await this.handleOpenQuery(singleItem, [singleItem]);
505+
await this.handleOpenQuery(finalSingleItem, [finalSingleItem]);
506506
} else {
507507
// show results on single click
508-
await this.invokeCallbackOn(singleItem);
508+
await this.invokeCallbackOn(finalSingleItem);
509509
}
510510
}
511511

0 commit comments

Comments
 (0)