File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55if [[ " $OSTYPE " == " darwin" * ]]; then
66 realpath () { [[ $1 = /* ]] && echo " $1 " || echo " $PWD /${1# ./ } " ; }
77 ROOT=$( dirname " $( dirname " $( realpath " $0 " ) " ) " )
8-
9- # On Linux with Electron 2.0.x running out of a VM causes
10- # a freeze so we only enable this flag on macOS
11- export ELECTRON_ENABLE_LOGGING=1
128else
139 ROOT=$( dirname " $( dirname " $( readlink -f $0 ) " ) " )
1410 if grep -qi Microsoft /proc/version; then
@@ -50,6 +46,7 @@ function code() {
5046 export VSCODE_DEV=1
5147 export VSCODE_CLI=1
5248 export ELECTRON_ENABLE_STACK_DUMPING=1
49+ export ELECTRON_ENABLE_LOGGING=1
5350
5451 # Launch Code
5552 exec " $CODE " . " $@ "
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ node build\lib\electron.js
1616if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js electron
1717
1818:: Run tests
19+ set ELECTRON_ENABLE_LOGGING = 1
1920%CODE% .\test\electron\index.js %*
2021
2122popd
Original file line number Diff line number Diff line change 44if [[ " $OSTYPE " == " darwin" * ]]; then
55 realpath () { [[ $1 = /* ]] && echo " $1 " || echo " $PWD /${1# ./ } " ; }
66 ROOT=$( dirname $( dirname $( realpath " $0 " ) ) )
7-
8- # On Linux with Electron 2.0.x running out of a VM causes
9- # a freeze so we only enable this flag on macOS
10- export ELECTRON_ENABLE_LOGGING=1
117else
128 ROOT=$( dirname $( dirname $( readlink -f $0 ) ) )
139fi
@@ -31,10 +27,12 @@ node build/lib/electron.js || ./node_modules/.bin/gulp electron
3127# Unit Tests
3228if [[ " $OSTYPE " == " darwin" * ]]; then
3329 cd $ROOT ; ulimit -n 4096 ; \
30+ ELECTRON_ENABLE_LOGGING=1 \
3431 " $CODE " \
3532 test/electron/index.js " $@ "
3633else
3734 cd $ROOT ; \
35+ ELECTRON_ENABLE_LOGGING=1 \
3836 " $CODE " \
3937 test/electron/index.js " $@ "
4038fi
You can’t perform that action at this time.
0 commit comments