Skip to content

Commit 8a87db6

Browse files
committed
Use URI for open file link
1 parent 1151432 commit 8a87db6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

extensions/ql-vscode/src/local-queries/skeleton-query-wizard.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,14 @@ export class SkeletonQueryWizard {
364364
throw new Error("QL Pack storage path is undefined");
365365
}
366366

367-
const openFileArgs = [
368-
join(this.qlPackStoragePath, this.folderName, this.fileName),
369-
];
367+
const queryPath = join(
368+
this.qlPackStoragePath,
369+
this.folderName,
370+
this.fileName,
371+
);
372+
const queryPathUri = Uri.file(queryPath);
373+
374+
const openFileArgs = [queryPathUri.toString(true)];
370375
const queryString = encodeURI(JSON.stringify(openFileArgs));
371376
return `[${this.fileName}](command:vscode.open?${queryString})`;
372377
}

0 commit comments

Comments
 (0)