Skip to content

Commit 56faf36

Browse files
committed
Fix Windows path issue
1 parent 440044d commit 56faf36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extensions/ql-vscode/src/run-remote-query.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ async function generateQueryPack(cliServer: cli.CodeQLCliServer, queryFile: stri
109109
filter: (file: string) =>
110110
// copy file if it is in the packlist, or it is a parent directory of a file in the packlist
111111
!!toCopy.find(f => {
112-
const matches = f === file || f.startsWith(file + path.sep);
112+
// Normalized paths ensure that Windows drive letters are capitalized consistently.
113+
const normalizedPath = Uri.file(f).fsPath;
114+
const matches = normalizedPath === file || normalizedPath.startsWith(file + path.sep);
113115
if (matches) {
114116
copiedCount++;
115117
}

0 commit comments

Comments
 (0)