mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
![Daniel Imms](/assets/img/avatar_default.png)
* 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
39 lines
893 B
Bash
Executable file
39 lines
893 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
|
|
ROOT=$(dirname $(dirname $(realpath "$0")))
|
|
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
|
|
|
|
# Build
|
|
test -d out || ./node_modules/.bin/gulp compile
|
|
|
|
ELECTRON_RUN_AS_NODE=1 \
|
|
NODE_ENV=development \
|
|
VSCODE_DEV=1 \
|
|
ELECTRON_ENABLE_LOGGING=1 \
|
|
ELECTRON_ENABLE_STACK_DUMPING=1 \
|
|
"$CODE" --inspect=5874 "$ROOT/out/cli.js" . "$@"
|
|
}
|
|
|
|
code "$@"
|