Skip to content

Commit fdb46d3

Browse files
committed
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.
1 parent d49b3bf commit fdb46d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node/main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export const runCodeCli = async (args: DefaultedArgs): Promise<void> => {
5454
await spawnCli(await toCodeArgs(args))
5555
} catch (error: any) {
5656
logger.error("Got error from Code", error)
57+
process.exit(1)
5758
}
5859

5960
process.exit(0)

0 commit comments

Comments
 (0)