diff --git a/src/commands/buf-build.ts b/src/commands/buf-build.ts index a1f8f6a..8e41038 100644 --- a/src/commands/buf-build.ts +++ b/src/commands/buf-build.ts @@ -29,7 +29,7 @@ export const bufBuild = new Command( args.push("-o", outPath); } for (const workspaceFolder of vscode.workspace.workspaceFolders) { - bufState.execBufCommand(args, workspaceFolder.uri.path); + bufState.execBufCommand(args, workspaceFolder.uri.fsPath); } } ); diff --git a/src/commands/buf-config-init.ts b/src/commands/buf-config-init.ts index a7f5fc2..239e649 100644 --- a/src/commands/buf-config-init.ts +++ b/src/commands/buf-config-init.ts @@ -15,7 +15,7 @@ export const bufConfigInit = new Command( return; } for (const workspaceFolder of vscode.workspace.workspaceFolders) { - bufState.execBufCommand(["config", "init"], workspaceFolder.uri.path); + bufState.execBufCommand(["config", "init"], workspaceFolder.uri.fsPath); } } ); diff --git a/src/commands/buf-dep-prune.ts b/src/commands/buf-dep-prune.ts index 1439948..a569210 100644 --- a/src/commands/buf-dep-prune.ts +++ b/src/commands/buf-dep-prune.ts @@ -17,7 +17,7 @@ export const bufDepPrune = new Command( return; } for (const workspaceFolder of vscode.workspace.workspaceFolders) { - bufState.execBufCommand(["dep", "prune"], workspaceFolder.uri.path); + bufState.execBufCommand(["dep", "prune"], workspaceFolder.uri.fsPath); } } ); diff --git a/src/commands/buf-dep-update.ts b/src/commands/buf-dep-update.ts index cc3cb6c..9f7c62a 100644 --- a/src/commands/buf-dep-update.ts +++ b/src/commands/buf-dep-update.ts @@ -16,7 +16,7 @@ export const bufDepUpdate = new Command( return; } for (const workspaceFolder of vscode.workspace.workspaceFolders) { - bufState.execBufCommand(["dep", "update"], workspaceFolder.uri.path); + bufState.execBufCommand(["dep", "update"], workspaceFolder.uri.fsPath); } } ); diff --git a/src/commands/buf-generate.ts b/src/commands/buf-generate.ts index d976fd9..1d1d23f 100644 --- a/src/commands/buf-generate.ts +++ b/src/commands/buf-generate.ts @@ -16,7 +16,7 @@ export const bufGenerate = new Command( return; } for (const workspaceFolder of vscode.workspace.workspaceFolders) { - bufState.execBufCommand(["generate"], workspaceFolder.uri.path); + bufState.execBufCommand(["generate"], workspaceFolder.uri.fsPath); } } ); diff --git a/src/state.ts b/src/state.ts index 1ba788e..906784d 100644 --- a/src/state.ts +++ b/src/state.ts @@ -364,7 +364,7 @@ export const bufState = new BufState(); function getBinaryPathForRelConfigPath(configPath: string): string { if (vscode.workspace.workspaceFolders) { for (const workspaceFolder of vscode.workspace.workspaceFolders) { - const joinedPath = path.join(workspaceFolder.uri.path, configPath); + const joinedPath = path.join(workspaceFolder.uri.fsPath, configPath); if (fs.existsSync(joinedPath)) { return joinedPath; }