From d8880a78e9f88bbb117e4cde079b39838a924349 Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Mon, 11 Mar 2024 09:55:28 -0700 Subject: [PATCH] cli: propagate exit code from cli.js (#207343) Fixes #204067 --- resources/win32/bin/code.cmd | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/win32/bin/code.cmd b/resources/win32/bin/code.cmd index 9da8ab4f7b8..7e7b92c9eb7 100644 --- a/resources/win32/bin/code.cmd +++ b/resources/win32/bin/code.cmd @@ -3,4 +3,5 @@ setlocal set VSCODE_DEV= set ELECTRON_RUN_AS_NODE=1 "%~dp0..\@@NAME@@.exe" "%~dp0..\resources\app\out\cli.js" %* +IF %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL% endlocal