Skip to content

Commit d46c064

Browse files
committed
move back to ATOM_SHELL_INTERNAL_RUN_AS_NODE
1 parent de60490 commit d46c064

13 files changed

Lines changed: 16 additions & 16 deletions

File tree

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
environment:
2-
ELECTRON_RUN_AS_NODE: 1
2+
ATOM_SHELL_INTERNAL_RUN_AS_NODE: 1
33

44
install:
55
- ps: Install-Product node 4.1.1 x64

extensions/typescript/src/utils/electron.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function generatePatchedEnv(env:any, stdInPipeName:string, stdOutPipeName:string
4747

4848
newEnv['STDIN_PIPE_NAME'] = stdInPipeName;
4949
newEnv['STDOUT_PIPE_NAME'] = stdOutPipeName;
50-
newEnv['ELECTRON_RUN_AS_NODE'] = '1';
50+
newEnv['ATOM_SHELL_INTERNAL_RUN_AS_NODE'] = '1';
5151

5252
return newEnv;
5353
}

extensions/typescript/src/utils/electronForkStart.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var stdOutPipeName = process.env['STDOUT_PIPE_NAME'];
2929

3030
log('STDIN_PIPE_NAME: ' + stdInPipeName);
3131
log('STDOUT_PIPE_NAME: ' + stdOutPipeName);
32-
log('ELECTRON_RUN_AS_NODE: ' + process.env['ELECTRON_RUN_AS_NODE']);
32+
log('ATOM_SHELL_INTERNAL_RUN_AS_NODE: ' + process.env['ATOM_SHELL_INTERNAL_RUN_AS_NODE']);
3333

3434
// stdout redirection to named pipe
3535
(function() {
@@ -134,7 +134,7 @@ log('ELECTRON_RUN_AS_NODE: ' + process.env['ELECTRON_RUN_AS_NODE']);
134134
// Unset the custom environmental variables that should not get inherited
135135
delete process.env['STDIN_PIPE_NAME'];
136136
delete process.env['STDOUT_PIPE_NAME'];
137-
delete process.env['ELECTRON_RUN_AS_NODE'];
137+
delete process.env['ATOM_SHELL_INTERNAL_RUN_AS_NODE'];
138138

139139
require(program);
140140

resources/darwin/bin/code.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ function realpath() { python -c "import os,sys; print os.path.realpath(sys.argv[
77
CONTENTS="$(dirname "$(dirname "$(dirname "$(dirname "$(realpath "$0")")")")")"
88
ELECTRON="$CONTENTS/MacOS/Electron"
99
CLI="$CONTENTS/Resources/app/out/cli.js"
10-
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
10+
ATOM_SHELL_INTERNAL_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
1111
exit $?

resources/linux/bin/code.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ NAME="@@NAME@@"
77
VSCODE_PATH="/usr/share/$NAME"
88
ELECTRON="$VSCODE_PATH/$NAME"
99
CLI="$VSCODE_PATH/resources/app/out/cli.js"
10-
ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
10+
ATOM_SHELL_INTERNAL_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"
1111
exit $?

resources/win32/bin/code.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22
setlocal
33
set VSCODE_DEV=
4-
set ELECTRON_RUN_AS_NODE=1
4+
set ATOM_SHELL_INTERNAL_RUN_AS_NODE=1
55
"%~dp0..\\Code.exe" "%~dp0code.js" %*
66
endlocal

resources/win32/bin/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
delete process.env['ELECTRON_RUN_AS_NODE'];
1+
delete process.env['ATOM_SHELL_INTERNAL_RUN_AS_NODE'];
22
require('child_process').spawn(require('path').resolve(__dirname, '..', 'Code.exe'), process.argv.slice(2), { detached: true, stdio: 'ignore' });
33
process.exit(0);

scripts/test.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22

3-
set ELECTRON_RUN_AS_NODE=1
3+
set ATOM_SHELL_INTERNAL_RUN_AS_NODE=1
44

55
pushd %~dp0\..
66
.\.build\electron\electron.exe .\node_modules\mocha\bin\_mocha %*

scripts/test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ fi
1010

1111
# Unit Tests
1212
if [[ "$OSTYPE" == "darwin"* ]]; then
13-
cd $ROOT ; ulimit -n 4096 ; ELECTRON_RUN_AS_NODE=1 \
13+
cd $ROOT ; ulimit -n 4096 ; ATOM_SHELL_INTERNAL_RUN_AS_NODE=1 \
1414
./.build/electron/Electron.app/Contents/MacOS/Electron \
1515
node_modules/mocha/bin/_mocha $*
1616
else
17-
cd $ROOT ; ELECTRON_RUN_AS_NODE=1 \
17+
cd $ROOT ; ATOM_SHELL_INTERNAL_RUN_AS_NODE=1 \
1818
./.build/electron/electron \
1919
node_modules/mocha/bin/_mocha $*
2020
fi

src/vs/base/node/stdFork.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function generatePatchedEnv(env:any, stdInPipeName:string, stdOutPipeName:string
4848

4949
newEnv['STDIN_PIPE_NAME'] = stdInPipeName;
5050
newEnv['STDOUT_PIPE_NAME'] = stdOutPipeName;
51-
newEnv['ELECTRON_RUN_AS_NODE'] = '1';
51+
newEnv['ATOM_SHELL_INTERNAL_RUN_AS_NODE'] = '1';
5252

5353
return newEnv;
5454
}

0 commit comments

Comments
 (0)