mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 04:36:23 +00:00
* electron@2.0.0-beta-1 * Update distro * Update electron.d.ts to 2.0.0-beta.1 * Disable asar as it causes a native crash * Adopt Module._resolveLookupPaths ASAR patch * electron 2.x - restore inspector URL in extension host * electron 2.x - adopt context menu callback for onHide * electron 2.x - remove workaround for https://github.com/electron/electron/issues/10442 * electron 2.x - update node.d.ts * electron 2.x - update node.d.ts to 8.9.x * electron 2.x - keep node.d.ts changes to a minimum * electron 2.x - remove workaround for https://github.com/electron/electron/issues/10862 * electron 2.x - bump to 2.0.0-beta2 * bump to 2.0.0-beta.3 * Context menu: selecting "Rename" does not put focs into rename box (fix #45601) * quality "exploration" for easier testing * empty commit * push a workaround for #45700 * Certain themes show UI artifacts over activity bar icons (fixes #45700) * better fix for #45700 * bump to 2.0.0-beta.4 * another fix to prevent flickering for #45700 * avoid remote access in index.js * bump distro commit * electron 2.x - do not use --debug anymore * bump electron to 2.0.0-beta.5 * electron 2.x - add libgtk-3-dev as build dependency for Linux 64 * electron 2.x - workaround freeze on linux on startup * bump local storage telemetry key * electron 2.x - do a one time backup of local storage * enable ELECTRON_ENABLE_LOGGING on macOS at least * 2.0.0-beta.6 * Fix ctrl+shift+e not focusing explorer on Linux * distro - use GH electron builds for now
57 lines
1.4 KiB
Bash
Executable File
57 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
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)")")
|
|
fi
|
|
|
|
function code() {
|
|
cd "$ROOT"
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
NAME=`node -p "require('./product.json').nameLong"`
|
|
CODE="./.build/electron/$NAME.app/Contents/MacOS/Electron"
|
|
else
|
|
NAME=`node -p "require('./product.json').applicationName"`
|
|
CODE=".build/electron/$NAME"
|
|
fi
|
|
|
|
# Node modules
|
|
test -d node_modules || yarn
|
|
|
|
# Get electron
|
|
node build/lib/electron.js || ./node_modules/.bin/gulp electron
|
|
|
|
# Manage built-in extensions
|
|
if [[ "$1" == "--builtin" ]]; then
|
|
exec "$CODE" build/builtin
|
|
return
|
|
fi
|
|
|
|
# Sync built-in extensions
|
|
node build/lib/builtInExtensions.js
|
|
|
|
# Build
|
|
test -d out || ./node_modules/.bin/gulp compile
|
|
|
|
# Configuration
|
|
export NODE_ENV=development
|
|
export VSCODE_DEV=1
|
|
export VSCODE_CLI=1
|
|
export ELECTRON_ENABLE_STACK_DUMPING=1
|
|
|
|
# Launch Code
|
|
exec "$CODE" . "$@"
|
|
}
|
|
|
|
# Use the following to get v8 tracing:
|
|
# code --js-flags="--trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces" "$@"
|
|
|
|
code "$@"
|