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.
This commit is contained in:
Asher 2024-01-11 12:45:00 -09:00
parent d49b3bf159
commit fdb46d3fe5
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

@ -54,6 +54,7 @@ export const runCodeCli = async (args: DefaultedArgs): Promise<void> => {
await spawnCli(await toCodeArgs(args))
} catch (error: any) {
logger.error("Got error from Code", error)
process.exit(1)
}
process.exit(0)