From fdb46d3fe5808f205488abcc5b8104a5ecf664ae Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 11 Jan 2024 12:45:00 -0900 Subject: [PATCH] Exit with 1 when VS Code CLI errors Addresses part of #6367. The script bundled with VS Code still has the same problem but it would be better to fix that one upstream. --- src/node/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node/main.ts b/src/node/main.ts index c93dd4f6c..4ae3ce5e5 100644 --- a/src/node/main.ts +++ b/src/node/main.ts @@ -54,6 +54,7 @@ export const runCodeCli = async (args: DefaultedArgs): Promise => { await spawnCli(await toCodeArgs(args)) } catch (error: any) { logger.error("Got error from Code", error) + process.exit(1) } process.exit(0)