mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
only call yarn gulp node when needed
This commit is contained in:
@@ -12,11 +12,15 @@ set VSCODE_DEV=1
|
||||
:: Sync built-in extensions
|
||||
call yarn download-builtin-extensions
|
||||
|
||||
:: Download nodejs executable for remote
|
||||
call yarn gulp node
|
||||
:: Node executable
|
||||
FOR /F "tokens=*" %%g IN ('node build/lib/node.js') do (SET NODE=%%g)
|
||||
|
||||
if not exist "%NODE%" (
|
||||
:: Download nodejs executable for remote
|
||||
call yarn gulp node
|
||||
)
|
||||
|
||||
:: Launch Server
|
||||
FOR /F "tokens=*" %%g IN ('node build/lib/node.js') do (SET NODE=%%g)
|
||||
call "%NODE%" scripts\code-server.js %*
|
||||
|
||||
popd
|
||||
|
||||
@@ -31,6 +31,7 @@ if (args.help) {
|
||||
'./scripts/code-server.sh|bat [options]\n' +
|
||||
' --launch Opens a browser'
|
||||
);
|
||||
// more help options will be printed by startServer
|
||||
}
|
||||
|
||||
const serverArgs = process.argv.slice(2).filter(v => v !== '--launch');
|
||||
|
||||
@@ -13,10 +13,11 @@ function code() {
|
||||
# Sync built-in extensions
|
||||
yarn download-builtin-extensions
|
||||
|
||||
# Load remote node
|
||||
yarn gulp node
|
||||
|
||||
NODE=$(node build/lib/node.js)
|
||||
if [ ! -e $NODE ];then
|
||||
# Load remote node
|
||||
yarn gulp node
|
||||
fi
|
||||
|
||||
NODE_ENV=development \
|
||||
VSCODE_DEV=1 \
|
||||
|
||||
@@ -8,11 +8,15 @@ pushd %~dp0\..
|
||||
:: Sync built-in extensions
|
||||
call yarn download-builtin-extensions
|
||||
|
||||
:: Download nodejs executable for remote
|
||||
call yarn gulp node
|
||||
:: Node executable
|
||||
FOR /F "tokens=*" %%g IN ('node build/lib/node.js') do (SET NODE=%%g)
|
||||
|
||||
if not exist "%NODE%" (
|
||||
:: Download nodejs executable for remote
|
||||
call yarn gulp node
|
||||
)
|
||||
|
||||
:: Launch Server
|
||||
FOR /F "tokens=*" %%g IN ('node build/lib/node.js') do (SET NODE=%%g)
|
||||
call "%NODE%" scripts\code-web.js %*
|
||||
|
||||
popd
|
||||
|
||||
@@ -13,8 +13,11 @@ function code() {
|
||||
# Sync built-in extensions
|
||||
yarn download-builtin-extensions
|
||||
|
||||
# Load remote node
|
||||
yarn gulp node
|
||||
NODE=$(node build/lib/node.js)
|
||||
if [ ! -e $NODE ];then
|
||||
# Load remote node
|
||||
yarn gulp node
|
||||
fi
|
||||
|
||||
NODE=$(node build/lib/node.js)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user