mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 17:22:20 -05:00
* Initial VS Code 1.21 file copy with patches * A few more merges * Post npm install * Fix batch of build breaks * Fix more build breaks * Fix more build errors * Fix more build breaks * Runtime fixes 1 * Get connection dialog working with some todos * Fix a few packaging issues * Copy several node_modules to package build to fix loader issues * Fix breaks from master * A few more fixes * Make tests pass * First pass of license header updates * Second pass of license header updates * Fix restore dialog issues * Remove add additional themes menu items * fix select box issues where the list doesn't show up * formatting * Fix editor dispose issue * Copy over node modules to correct location on all platforms
52 lines
1.1 KiB
Batchfile
52 lines
1.1 KiB
Batchfile
@echo off
|
|
setlocal
|
|
|
|
title VSCode Dev
|
|
|
|
pushd %~dp0\..
|
|
|
|
:: Node modules
|
|
if not exist node_modules call yarn
|
|
|
|
for /f "tokens=2 delims=:," %%a in ('findstr /R /C:"\"nameShort\":.*" product.json') do set NAMESHORT=%%~a
|
|
set NAMESHORT=%NAMESHORT: "=%
|
|
set NAMESHORT=%NAMESHORT:"=%.exe
|
|
set CODE=".build\electron\%NAMESHORT%"
|
|
|
|
:: Download Electron if needed
|
|
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
|
|
|
|
:: Configuration
|
|
set NODE_ENV=development
|
|
set VSCODE_DEV=1
|
|
set VSCODE_CLI=1
|
|
set ELECTRON_DEFAULT_ERROR_MODE=1
|
|
set ELECTRON_ENABLE_LOGGING=1
|
|
set ELECTRON_ENABLE_STACK_DUMPING=1
|
|
|
|
:: Launch Code
|
|
|
|
:: Use the following to get v8 tracing:
|
|
:: %CODE% --js-flags="--trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces" . %*
|
|
|
|
%CODE% . %*
|
|
goto end
|
|
|
|
:builtin
|
|
%CODE% build/builtin
|
|
|
|
:end
|
|
|
|
popd
|
|
|
|
endlocal |