Fix error from "Open Query Results" button
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
- 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)
|
- 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)
|
||||||
- Fix markdown rendering in the description of the `codeQL.cli.executablePath` setting. [#908](https://github.com/github/vscode-codeql/pull/908)
|
- Fix markdown rendering in the description of the `codeQL.cli.executablePath` setting. [#908](https://github.com/github/vscode-codeql/pull/908)
|
||||||
|
- Fix the _Open Query Results_ command in the query history view. [#909](https://github.com/github/vscode-codeql/pull/909)
|
||||||
|
|
||||||
## 1.5.1 - 23 June 2021
|
## 1.5.1 - 23 June 2021
|
||||||
|
|
||||||
|
|||||||
@@ -499,13 +499,13 @@ export class QueryHistoryManager extends DisposableObject {
|
|||||||
if (
|
if (
|
||||||
prevItemClick !== undefined &&
|
prevItemClick !== undefined &&
|
||||||
now.valueOf() - prevItemClick.time.valueOf() < DOUBLE_CLICK_TIME &&
|
now.valueOf() - prevItemClick.time.valueOf() < DOUBLE_CLICK_TIME &&
|
||||||
singleItem == prevItemClick.item
|
finalSingleItem == prevItemClick.item
|
||||||
) {
|
) {
|
||||||
// show original query file on double click
|
// show original query file on double click
|
||||||
await this.handleOpenQuery(singleItem, [singleItem]);
|
await this.handleOpenQuery(finalSingleItem, [finalSingleItem]);
|
||||||
} else {
|
} else {
|
||||||
// show results on single click
|
// show results on single click
|
||||||
await this.invokeCallbackOn(singleItem);
|
await this.invokeCallbackOn(finalSingleItem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user