mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +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
|
||||
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
|
||||
if not exist out node .\node_modules\gulp\bin\gulp.js compile
|
||||
|
||||
|
@ -30,6 +36,13 @@ set ELECTRON_ENABLE_STACK_DUMPING=1
|
|||
|
||||
:: Launch Code
|
||||
%CODE% --inspect=5874 out\cli.js . %*
|
||||
goto end
|
||||
|
||||
:builtin
|
||||
%CODE% build/builtin
|
||||
|
||||
:end
|
||||
|
||||
popd
|
||||
|
||||
endlocal
|
||||
|
|
|
@ -24,6 +24,16 @@ function code() {
|
|||
# Get 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
|
||||
test -d out || ./node_modules/.bin/gulp compile
|
||||
|
||||
|
|
Loading…
Reference in a new issue