Skip to content

Commit be232bc

Browse files
Convert uri.path usage to .fsPath
.path makes sense for unix-like OSes, but doesn't work on Windows. Fixes #522.
1 parent 37edfff commit be232bc

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/commands/buf-build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const bufBuild = new Command(
2929
args.push("-o", outPath);
3030
}
3131
for (const workspaceFolder of vscode.workspace.workspaceFolders) {
32-
bufState.execBufCommand(args, workspaceFolder.uri.path);
32+
bufState.execBufCommand(args, workspaceFolder.uri.fsPath);
3333
}
3434
}
3535
);

src/commands/buf-config-init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const bufConfigInit = new Command(
1515
return;
1616
}
1717
for (const workspaceFolder of vscode.workspace.workspaceFolders) {
18-
bufState.execBufCommand(["config", "init"], workspaceFolder.uri.path);
18+
bufState.execBufCommand(["config", "init"], workspaceFolder.uri.fsPath);
1919
}
2020
}
2121
);

src/commands/buf-dep-prune.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const bufDepPrune = new Command(
1717
return;
1818
}
1919
for (const workspaceFolder of vscode.workspace.workspaceFolders) {
20-
bufState.execBufCommand(["dep", "prune"], workspaceFolder.uri.path);
20+
bufState.execBufCommand(["dep", "prune"], workspaceFolder.uri.fsPath);
2121
}
2222
}
2323
);

src/commands/buf-dep-update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const bufDepUpdate = new Command(
1616
return;
1717
}
1818
for (const workspaceFolder of vscode.workspace.workspaceFolders) {
19-
bufState.execBufCommand(["dep", "update"], workspaceFolder.uri.path);
19+
bufState.execBufCommand(["dep", "update"], workspaceFolder.uri.fsPath);
2020
}
2121
}
2222
);

src/commands/buf-generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const bufGenerate = new Command(
1616
return;
1717
}
1818
for (const workspaceFolder of vscode.workspace.workspaceFolders) {
19-
bufState.execBufCommand(["generate"], workspaceFolder.uri.path);
19+
bufState.execBufCommand(["generate"], workspaceFolder.uri.fsPath);
2020
}
2121
}
2222
);

0 commit comments

Comments
 (0)