Skip to content
Merged
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
7 changes: 5 additions & 2 deletions vscode/src/ruby/shadowenv.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as vscode from "vscode";

import os from "os";
import { asyncExec } from "../common";

import { VersionManager, ActivationResult, NonReportableError } from "./versionManager";
Expand All @@ -21,7 +21,10 @@ export class Shadowenv extends VersionManager {
);
}

const shadowenvExec = await this.findExec([vscode.Uri.file("/opt/homebrew/bin")], "shadowenv");
const shadowenvExec = await this.findExec(
[vscode.Uri.joinPath(vscode.Uri.file(os.homedir()), ".local", "bin"), vscode.Uri.file("/opt/homebrew/bin")],
"shadowenv",
);

try {
const parsedResult = await this.runEnvActivationScript(`${shadowenvExec} exec -- ruby`);
Expand Down
Loading