mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
launch: check prerequisites in a pre-launch task
Fixes https://github.com/microsoft/vscode/issues/103708
This commit is contained in:
@@ -18,11 +18,10 @@ function code() {
|
||||
CODE=".build/electron/$NAME"
|
||||
fi
|
||||
|
||||
# Node modules
|
||||
test -d node_modules || yarn
|
||||
|
||||
# Get electron
|
||||
yarn electron
|
||||
# Get electron, compile, built-in extensions
|
||||
if [[ -z "${VSCODE_SKIP_PRELAUNCH}" ]]; then
|
||||
node build/lib/preLaunch.js
|
||||
fi
|
||||
|
||||
# Manage built-in extensions
|
||||
if [[ "$1" == "--builtin" ]]; then
|
||||
@@ -30,12 +29,6 @@ function code() {
|
||||
return
|
||||
fi
|
||||
|
||||
# Sync built-in extensions
|
||||
node build/lib/builtInExtensions.js
|
||||
|
||||
# Build
|
||||
test -d out || yarn compile
|
||||
|
||||
ELECTRON_RUN_AS_NODE=1 \
|
||||
NODE_ENV=development \
|
||||
VSCODE_DEV=1 \
|
||||
|
||||
Reference in New Issue
Block a user