Skip to content

Commit f622c43

Browse files
committed
electron - enable ELECTRON_ENABLE_SECURITY_WARNINGS when running out of sources
1 parent 7555e1b commit f622c43

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

scripts/code-cli.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ if not exist out yarn compile
3030
set ELECTRON_RUN_AS_NODE=1
3131
set NODE_ENV=development
3232
set VSCODE_DEV=1
33+
set ELECTRON_ENABLE_SECURITY_WARNINGS=1
3334
REM set ELECTRON_DEFAULT_ERROR_MODE=1 TODO@ben to investigate if this helps with builds reporting stacks if renderer crashes
3435
set ELECTRON_ENABLE_LOGGING=1
3536
set ELECTRON_ENABLE_STACK_DUMPING=1

scripts/code-cli.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function code() {
3939
ELECTRON_RUN_AS_NODE=1 \
4040
NODE_ENV=development \
4141
VSCODE_DEV=1 \
42+
ELECTRON_ENABLE_SECURITY_WARNINGS=1 \
4243
ELECTRON_ENABLE_LOGGING=1 \
4344
ELECTRON_ENABLE_STACK_DUMPING=1 \
4445
"$CODE" --inspect=5874 "$ROOT/out/cli.js" . "$@"

scripts/code.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ if not exist out yarn compile
2828
:: Configuration
2929
set NODE_ENV=development
3030
set VSCODE_DEV=1
31+
set ELECTRON_ENABLE_SECURITY_WARNINGS=1
3132
set VSCODE_CLI=1
3233
REM set ELECTRON_DEFAULT_ERROR_MODE=1 TODO@ben to investigate if this helps with builds reporting stacks if renderer crashes
3334
set ELECTRON_ENABLE_LOGGING=1

scripts/code.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ function code() {
4444
# Configuration
4545
export NODE_ENV=development
4646
export VSCODE_DEV=1
47+
export ELECTRON_ENABLE_SECURITY_WARNINGS=1
4748
export VSCODE_CLI=1
4849
export ELECTRON_ENABLE_STACK_DUMPING=1
4950
export ELECTRON_ENABLE_LOGGING=1

0 commit comments

Comments
 (0)