Files
trypear--pearai-app/scripts/code-server.bat
T
wehub-resource-sync fdedcf53bb
Basic checks / Compilation, Unit and Integration Tests (push) Has been cancelled
Basic checks / Hygiene and Layering (push) Has been cancelled
Basic checks / Warm up node modules cache (push) Has been cancelled
Check Format and Lint / lint-and-format (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:36:35 +08:00

32 lines
517 B
Batchfile

@echo off
setlocal
title VSCode Server
set ROOT_DIR=%~dp0..
pushd %ROOT_DIR%
:: Configuration
set NODE_ENV=development
set VSCODE_DEV=1
:: Get electron, compile, built-in extensions
if "%VSCODE_SKIP_PRELAUNCH%"=="" node build/lib/preLaunch.js
:: Node executable
FOR /F "tokens=*" %%g IN ('node build/lib/node.js') do (SET NODE=%%g)
if not exist "%NODE%" (
:: Download nodejs executable for remote
call npm run gulp node
)
popd
:: Launch Server
call "%NODE%" %ROOT_DIR%\scripts\code-server.js %*
endlocal