Skip to content

Commit 746086b

Browse files
committed
Fix "Open Referenced File" command for windows paths
1 parent b3a51d7 commit 746086b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

extensions/ql-vscode/CHANGELOG.md

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

33
## [UNRELEASED]
44

5+
- Fix the _CodeQL: Open Referenced File_ command for Windows systems. [#979](https://github.com/github/vscode-codeql/pull/979)
56
- Fix a bug that shows 'Set current database' when hovering over the currently selected database in the databases view. [#976](https://github.com/github/vscode-codeql/pull/976)
67
- Fix a bug with importing large databases. Databases over 4GB can now be imported directly from LGTM or from a zip file. This functionality is only available when using CodeQL CLI version 2.6.0 or later. [#971](https://github.com/github/vscode-codeql/pull/971)
78
- Replace certain control codes (`U+0000` - `U+001F`) with their corresponding control labels (`U+2400` - `U+241F`) in the results view. [#963](https://github.com/github/vscode-codeql/pull/963)

extensions/ql-vscode/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ async function activateWithInstalledDistribution(
498498
): Promise<void> {
499499
if (qs !== undefined) {
500500
if (await cliServer.cliConstraints.supportsResolveQlref()) {
501-
const resolved = await cliServer.resolveQlref(selectedQuery.path);
501+
const resolved = await cliServer.resolveQlref(selectedQuery.fsPath);
502502
const uri = Uri.file(resolved.resolvedPath);
503503
await window.showTextDocument(uri, { preview: false });
504504
} else {

0 commit comments

Comments
 (0)