Skip to content

Commit 2c04385

Browse files
committed
fixup: use NODE_EXEC_PATh
1 parent 6ca7bf8 commit 2c04385

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/build/build-vscode.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ copy-bin-script() {
2525
sed -i.bak 's/ROOT\/out/VSROOT\/out/g' "$dest"
2626
# We do not want expansion here; this text should make it to the file as-is.
2727
# shellcheck disable=SC2016
28-
sed -i.bak 's/$ROOT\/node/${CS_NODE_EXEC_PATH:-$ROOT\/lib\/node}/g' "$dest"
28+
sed -i.bak 's/$ROOT\/node/${NODE_EXEC_PATH:-ROOT\/lib\/node}/g' "$dest"
2929

3030
# Fix Node path on Windows.
3131
sed -i.bak 's/^set ROOT_DIR=\(.*\)$/set ROOT_DIR=%~dp0..\\..\\..\\..\r\nset VSROOT_DIR=\1/g' "$dest"

src/node/wrapper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export class ParentProcess extends Process {
321321
env: {
322322
...process.env,
323323
CODE_SERVER_PARENT_PID: process.pid.toString(),
324-
CS_NODE_EXEC_PATH: process.execPath,
324+
NODE_EXEC_PATH: process.execPath,
325325
},
326326
stdio: ["pipe", "pipe", "pipe", "ipc"],
327327
})

0 commit comments

Comments
 (0)