Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Dima <alexdima@microsoft.com>2022-02-17 14:37:40 +0300
committerAlex Dima <alexdima@microsoft.com>2022-02-17 14:37:40 +0300
commitf865f66c917c05d303e3d3ad7ae6e7f55208faab (patch)
tree51667220216caaa2465a3d5a8d41e921705e5cf0 /scripts
parent069a612a1cd220174077b49cbde40953e1d4f32b (diff)
Fixes #143088: Launch a compilation if necessary when using `code-server` scripts
Diffstat (limited to 'scripts')
-rw-r--r--scripts/code-server.bat4
-rwxr-xr-xscripts/code-server.sh6
2 files changed, 6 insertions, 4 deletions
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