Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands/buf-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
);
2 changes: 1 addition & 1 deletion src/commands/buf-config-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
);
2 changes: 1 addition & 1 deletion src/commands/buf-dep-prune.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
);
2 changes: 1 addition & 1 deletion src/commands/buf-dep-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
);
2 changes: 1 addition & 1 deletion src/commands/buf-generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
);
2 changes: 1 addition & 1 deletion src/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down