File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,11 +12,15 @@ set VSCODE_DEV=1
1212:: Sync built-in extensions
1313call yarn download-builtin-extensions
1414
15- :: Download nodejs executable for remote
16- call yarn gulp node
15+ :: Node executable
16+ FOR /F " tokens=*" %%g IN ('node build/lib/node.js') do (SET NODE=%%g )
17+
18+ if not exist " %NODE% " (
19+ :: Download nodejs executable for remote
20+ call yarn gulp node
21+ )
1722
1823:: Launch Server
19- FOR /F " tokens=*" %%g IN ('node build/lib/node.js') do (SET NODE=%%g )
2024call " %NODE% " scripts\code-server.js %*
2125
2226popd
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ if (args.help) {
3131 './scripts/code-server.sh|bat [options]\n' +
3232 ' --launch Opens a browser'
3333 ) ;
34+ // more help options will be printed by startServer
3435}
3536
3637const serverArgs = process . argv . slice ( 2 ) . filter ( v => v !== '--launch' ) ;
Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ function code() {
1313 # Sync built-in extensions
1414 yarn download-builtin-extensions
1515
16- # Load remote node
17- yarn gulp node
18-
1916 NODE=$( node build/lib/node.js)
17+ if [ ! -e $NODE ]; then
18+ # Load remote node
19+ yarn gulp node
20+ fi
2021
2122 NODE_ENV=development \
2223 VSCODE_DEV=1 \
Original file line number Diff line number Diff line change @@ -8,11 +8,15 @@ pushd %~dp0\..
88:: Sync built-in extensions
99call yarn download-builtin-extensions
1010
11- :: Download nodejs executable for remote
12- call yarn gulp node
11+ :: Node executable
12+ FOR /F " tokens=*" %%g IN ('node build/lib/node.js') do (SET NODE=%%g )
13+
14+ if not exist " %NODE% " (
15+ :: Download nodejs executable for remote
16+ call yarn gulp node
17+ )
1318
1419:: Launch Server
15- FOR /F " tokens=*" %%g IN ('node build/lib/node.js') do (SET NODE=%%g )
1620call " %NODE% " scripts\code-web.js %*
1721
1822popd
Original file line number Diff line number Diff line change @@ -13,8 +13,11 @@ function code() {
1313 # Sync built-in extensions
1414 yarn download-builtin-extensions
1515
16- # Load remote node
17- yarn gulp node
16+ NODE=$( node build/lib/node.js)
17+ if [ ! -e $NODE ]; then
18+ # Load remote node
19+ yarn gulp node
20+ fi
1821
1922 NODE=$( node build/lib/node.js)
2023
You can’t perform that action at this time.
0 commit comments