Skip to content

Commit f1227dd

Browse files
committed
Build directory URI using Uri.file instead of Uri.parse
`Uri.parse` will not work with Windows paths as it will consider `C:\path` to indicate a file scheme (the "C:" part) and will complain about it. With `Uri.file` we can build the URI without hitting this complication.
1 parent a59a008 commit f1227dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/ql-vscode/src/qlpack-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class QlPackGenerator {
3535
this.header = "# This is an automatically generated file.\n\n";
3636

3737
this.qlpackFileName = "qlpack.yml";
38-
this.folderUri = Uri.parse(join(this.storagePath, this.folderName));
38+
this.folderUri = Uri.file(join(this.storagePath, this.folderName));
3939
}
4040

4141
public async generate() {

0 commit comments

Comments
 (0)