Skip to content

Commit a28784b

Browse files
committed
Respect LD_LIBRARY_PATH when forking on Linux
1 parent 95006a4 commit a28784b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/server/src/vscode/bootstrapFork.ts

+4
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ export const forkModule = (modulePath: string, args?: string[], options?: cp.For
9191
forkOptions.env = options.env;
9292
}
9393

94+
if (forkOptions && forkOptions.env && os.platform() === "linux") {
95+
forkOptions.env.LD_LIBRARY_PATH = process.env.LD_LIBRARY_PATH;
96+
}
97+
9498
const forkArgs = ["--bootstrap-fork", modulePath];
9599
if (args) {
96100
forkArgs.push("--extra-args", JSON.stringify(args));

0 commit comments

Comments
 (0)