mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-13 17:24:27 +01:00
* test: probe Windows batch exit propagation (Written by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix: preserve Windows batch failure exit codes Move failure exits outside parenthesized command blocks, where cmd.exe otherwise returns zero to the caller. (Written by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test: remove Windows exit probe The controlled CI runs captured the failure and validated the top-level failure labels, so remove the temporary diagnostics. (Written by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test: stabilize Agent Host E2E on Windows Keep portable shell and plugin scenarios enabled while gating three documented Windows persistence and changeset gaps. (Written by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test: gate unsupported Windows Agent Host E2E Document and skip Windows-only scratch cleanup, custom terminal metadata, and client-plugin hook gaps. (Written by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * test: gate stale Windows discard summaries Document and skip the final tracked-change discard variant whose Windows changeset summaries do not refresh. (Written by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
59 lines
1.1 KiB
Batchfile
59 lines
1.1 KiB
Batchfile
@echo off
|
|
setlocal
|
|
|
|
title VSCode Dev
|
|
|
|
pushd %~dp0\..
|
|
|
|
:: Get electron, compile, built-in extensions
|
|
if "%VSCODE_SKIP_PRELAUNCH%"=="" (
|
|
node build/lib/preLaunch.ts || (
|
|
echo Failed to prepare VS Code for launch ^(build/lib/preLaunch.ts^). 1>&2
|
|
goto :failed
|
|
)
|
|
)
|
|
goto :prelaunch_complete
|
|
|
|
:failed
|
|
popd
|
|
endlocal
|
|
exit /b 1
|
|
|
|
:prelaunch_complete
|
|
|
|
set "NAMESHORT="
|
|
for /f "tokens=2 delims=:," %%a in ('findstr /R /C:"\"nameShort\":.*" product.json') do if not defined NAMESHORT set "NAMESHORT=%%~a"
|
|
set NAMESHORT=%NAMESHORT: "=%
|
|
set NAMESHORT=%NAMESHORT:"=%.exe
|
|
set CODE=".build\electron\%NAMESHORT%"
|
|
|
|
:: Manage built-in extensions
|
|
if "%~1"=="--builtin" goto builtin
|
|
|
|
:: Configuration
|
|
set NODE_ENV=development
|
|
set VSCODE_DEV=1
|
|
set VSCODE_CLI=1
|
|
set ELECTRON_ENABLE_LOGGING=1
|
|
set ELECTRON_ENABLE_STACK_DUMPING=1
|
|
|
|
set DISABLE_TEST_EXTENSION="--disable-extension=vscode.vscode-api-tests"
|
|
for %%A in (%*) do (
|
|
if "%%~A"=="--extensionTestsPath" (
|
|
set DISABLE_TEST_EXTENSION=""
|
|
)
|
|
)
|
|
|
|
:: Launch Code
|
|
%CODE% . %DISABLE_TEST_EXTENSION% %*
|
|
goto end
|
|
|
|
:builtin
|
|
%CODE% build/builtin
|
|
|
|
:end
|
|
|
|
popd
|
|
|
|
endlocal
|