Skip to content

Commit 7a0d962

Browse files
authored
code --status displays a lot of errors before actual status output (fix microsoft#183787) (microsoft#184200)
fix 183787
1 parent 05ae089 commit 7a0d962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/code/node/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export async function main(argv: string[]): Promise<any> {
194194

195195
if (args.verbose || args.status) {
196196
processCallbacks.push(async child => {
197-
child.stdout!.on('data', (data: Buffer) => console.log(data.toString('utf8').trim()));
197+
child.stdout?.on('data', (data: Buffer) => console.log(data.toString('utf8').trim()));
198198
child.stderr?.on('data', (data: Buffer) => console.log(data.toString('utf8').trim()));
199199

200200
await Event.toPromise(Event.fromNodeEventEmitter(child, 'exit'));

0 commit comments

Comments
 (0)