From f865f66c917c05d303e3d3ad7ae6e7f55208faab Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Thu, 17 Feb 2022 12:37:40 +0100 Subject: Fixes #143088: Launch a compilation if necessary when using `code-server` scripts --- scripts/code-server.bat | 4 ++-- scripts/code-server.sh | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/code-server.bat b/scripts/code-server.bat index fd7e8d46028..bba4c58d3c1 100644 --- a/scripts/code-server.bat +++ b/scripts/code-server.bat @@ -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) diff --git a/scripts/code-server.sh b/scripts/code-server.sh index 6e31e233fa0..298157e4ee7 100755 --- a/scripts/code-server.sh +++ b/scripts/code-server.sh @@ -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 -- cgit v1.2.3