File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/vs/code/electron-main Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { validatedIpcMain } from 'vs/base/parts/ipc/electron-main/ipcMain';
9
9
import { hostname , release } from 'os' ;
10
10
import { VSBuffer } from 'vs/base/common/buffer' ;
11
11
import { toErrorMessage } from 'vs/base/common/errorMessage' ;
12
- import { onUnexpectedError , setUnexpectedErrorHandler } from 'vs/base/common/errors' ;
12
+ import { isSigPipeError , onUnexpectedError , setUnexpectedErrorHandler } from 'vs/base/common/errors' ;
13
13
import { isEqualOrParent } from 'vs/base/common/extpath' ;
14
14
import { once } from 'vs/base/common/functional' ;
15
15
import { stripComments } from 'vs/base/common/json' ;
@@ -336,7 +336,11 @@ export class CodeApplication extends Disposable {
336
336
337
337
// We handle uncaught exceptions here to prevent electron from opening a dialog to the user
338
338
setUnexpectedErrorHandler ( error => this . onUnexpectedError ( error ) ) ;
339
- process . on ( 'uncaughtException' , error => onUnexpectedError ( error ) ) ;
339
+ process . on ( 'uncaughtException' , error => {
340
+ if ( ! isSigPipeError ( error ) ) {
341
+ onUnexpectedError ( error ) ;
342
+ }
343
+ } ) ;
340
344
process . on ( 'unhandledRejection' , ( reason : unknown ) => onUnexpectedError ( reason ) ) ;
341
345
342
346
// Dispose on shutdown
You can’t perform that action at this time.
0 commit comments