Use URI for open file link

This commit is contained in:
Koen Vlaswinkel
2023-10-27 10:15:58 +02:00
parent 1151432ca2
commit 8a87db6cb4

View File

@@ -364,9 +364,14 @@ export class SkeletonQueryWizard {
throw new Error("QL Pack storage path is undefined");
}
const openFileArgs = [
join(this.qlPackStoragePath, this.folderName, this.fileName),
];
const queryPath = join(
this.qlPackStoragePath,
this.folderName,
this.fileName,
);
const queryPathUri = Uri.file(queryPath);
const openFileArgs = [queryPathUri.toString(true)];
const queryString = encodeURI(JSON.stringify(openFileArgs));
return `[${this.fileName}](command:vscode.open?${queryString})`;
}