Fixes #143088: Launch a compilation if necessary when using code-server scripts

This commit is contained in:
Alex Dima
2022-02-17 12:37:40 +01:00
parent 069a612a1c
commit f865f66c91
2 changed files with 6 additions and 4 deletions

View File

@@ -9,8 +9,8 @@ pushd %~dp0\..
set NODE_ENV=development
set VSCODE_DEV=1
:: Sync built-in extensions
call yarn download-builtin-extensions
:: Get electron, compile, built-in extensions
if "%VSCODE_SKIP_PRELAUNCH%"=="" node build/lib/preLaunch.js
:: Node executable
FOR /F "tokens=*" %%g IN ('node build/lib/node.js') do (SET NODE=%%g)

View File

@@ -10,8 +10,10 @@ fi
function code() {
cd $ROOT
# Sync built-in extensions
yarn download-builtin-extensions
# Get electron, compile, built-in extensions
if [[ -z "${VSCODE_SKIP_PRELAUNCH}" ]]; then
node build/lib/preLaunch.js
fi
NODE=$(node build/lib/node.js)
if [ ! -e $NODE ];then