Skip to content

Commit

Permalink
Exit with 1 when VS Code CLI errors
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
code-asher committed Jan 11, 2024
1 parent d49b3bf commit fdb46d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fdb46d3

Please sign in to comment.