mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
code-cli: update built-in extensions
This commit is contained in:
parent
43676d0cb7
commit
0561bf92d4
|
@ -17,6 +17,12 @@ set CODE=".build\electron\%NAMESHORT%"
|
||||||
node build\lib\electron.js
|
node build\lib\electron.js
|
||||||
if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js electron
|
if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js electron
|
||||||
|
|
||||||
|
:: Manage build-in extensions
|
||||||
|
if "%1"=="--builtin" goto builtin
|
||||||
|
|
||||||
|
:: Sync built-in extensions
|
||||||
|
node build\lib\builtInExtensions.js
|
||||||
|
|
||||||
:: Build
|
:: Build
|
||||||
if not exist out node .\node_modules\gulp\bin\gulp.js compile
|
if not exist out node .\node_modules\gulp\bin\gulp.js compile
|
||||||
|
|
||||||
|
@ -30,6 +36,13 @@ set ELECTRON_ENABLE_STACK_DUMPING=1
|
||||||
|
|
||||||
:: Launch Code
|
:: Launch Code
|
||||||
%CODE% --inspect=5874 out\cli.js . %*
|
%CODE% --inspect=5874 out\cli.js . %*
|
||||||
|
goto end
|
||||||
|
|
||||||
|
:builtin
|
||||||
|
%CODE% build/builtin
|
||||||
|
|
||||||
|
:end
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
endlocal
|
endlocal
|
||||||
|
|
|
@ -24,6 +24,16 @@ function code() {
|
||||||
# Get electron
|
# Get electron
|
||||||
node build/lib/electron.js || ./node_modules/.bin/gulp electron
|
node build/lib/electron.js || ./node_modules/.bin/gulp electron
|
||||||
|
|
||||||
|
|
||||||
|
# Manage built-in extensions
|
||||||
|
if [[ "$1" == "--builtin" ]]; then
|
||||||
|
exec "$CODE" build/builtin
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Sync built-in extensions
|
||||||
|
node build/lib/builtInExtensions.js
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
test -d out || ./node_modules/.bin/gulp compile
|
test -d out || ./node_modules/.bin/gulp compile
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue