build - enable ELECTRON_ENABLE_LOGGING again on Linux (#80192)

This commit is contained in:
Benjamin Pasero
2019-09-02 09:30:31 +02:00
committed by GitHub
parent facfdbc510
commit a62ea90c35
3 changed files with 4 additions and 8 deletions

View File

@@ -5,10 +5,6 @@ set -e
if [[ "$OSTYPE" == "darwin"* ]]; then
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
ROOT=$(dirname "$(dirname "$(realpath "$0")")")
# On Linux with Electron 2.0.x running out of a VM causes
# a freeze so we only enable this flag on macOS
export ELECTRON_ENABLE_LOGGING=1
else
ROOT=$(dirname "$(dirname "$(readlink -f $0)")")
if grep -qi Microsoft /proc/version; then
@@ -50,6 +46,7 @@ function code() {
export VSCODE_DEV=1
export VSCODE_CLI=1
export ELECTRON_ENABLE_STACK_DUMPING=1
export ELECTRON_ENABLE_LOGGING=1
# Launch Code
exec "$CODE" . "$@"