Skip to content

Commit 85166aa

Browse files
committed
Don't set environment
1 parent ec6470f commit 85166aa

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/toolchain/toolchain.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -692,19 +692,9 @@ export class SwiftToolchain {
692692
}
693693

694694
private static async swiftlyInUseLocation(swiftlyPath: string, cwd?: vscode.Uri) {
695-
const env: Record<string, string> = {};
696-
if (path.isAbsolute(swiftlyPath)) {
697-
env["SWIFTLY_HOME_DIR"] = path.dirname(path.dirname(swiftlyPath));
698-
env["SWIFTLY_BIN_DIR"] = path.dirname(swiftlyPath);
699-
}
700-
const { stdout: inUse } = await execFile(
701-
swiftlyPath,
702-
["use", "--print-location"],
703-
{
704-
cwd: cwd?.fsPath,
705-
env,
706-
}
707-
);
695+
const { stdout: inUse } = await execFile(swiftlyPath, ["use", "--print-location"], {
696+
cwd: cwd?.fsPath,
697+
});
708698
return inUse.trimEnd();
709699
}
710700

0 commit comments

Comments
 (0)