File tree Expand file tree Collapse file tree
src/vs/platform/telemetry/node Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 * Licensed under the MIT License. See License.txt in the project root for license information.
44 *--------------------------------------------------------------------------------------------*/
55
6- import { onUnexpectedError } from 'vs/base/common/errors' ;
6+ import { onUnexpectedError , setUnexpectedErrorHandler } from 'vs/base/common/errors' ;
77import BaseErrorTelemetry from '../common/errorTelemetry' ;
88
99export default class ErrorTelemetry extends BaseErrorTelemetry {
1010 protected installErrorListeners ( ) : void {
11+ setUnexpectedErrorHandler ( err => console . error ( err ) ) ;
12+
1113 // Print a console message when rejection isn't handled within N seconds. For details:
1214 // see https://nodejs.org/api/process.html#process_event_unhandledrejection
1315 // and https://nodejs.org/api/process.html#process_event_rejectionhandled
You can’t perform that action at this time.
0 commit comments