Skip to content

Commit 4dbca63

Browse files
fix: Consistent path construction in rv.ts
1 parent ed9558f commit 4dbca63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vscode/src/ruby/rv.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export class Rv extends VersionManager {
2626
return this.ensureRvExistsAt(configuredRvPath);
2727
} else {
2828
const possiblePaths = [
29-
vscode.Uri.file("/home/linuxbrew/.linuxbrew/bin"),
30-
vscode.Uri.file("/usr/local/bin"),
31-
vscode.Uri.file("/opt/homebrew/bin"),
29+
vscode.Uri.joinPath(vscode.Uri.file("/"), "home", "linuxbrew", ".linuxbrew", "bin"),
30+
vscode.Uri.joinPath(vscode.Uri.file("/"), "usr", "local", "bin"),
31+
vscode.Uri.joinPath(vscode.Uri.file("/"), "opt", "homebrew", "bin"),
3232
vscode.Uri.joinPath(vscode.Uri.file("/"), "usr", "bin"),
3333
];
3434
return this.findExec(possiblePaths, "rv");

0 commit comments

Comments
 (0)