mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 16:58:55 -05:00
don't log errors twice, #32766
This commit is contained in:
18
src/bootstrap.js
vendored
18
src/bootstrap.js
vendored
@@ -103,13 +103,15 @@ if (!process.env['VSCODE_ALLOW_IO']) {
|
||||
process.__defineGetter__('stdin', function () { return writable; });
|
||||
}
|
||||
|
||||
// Handle uncaught exceptions
|
||||
process.on('uncaughtException', function (err) {
|
||||
console.error('Uncaught Exception: ', err.toString());
|
||||
if (err.stack) {
|
||||
console.error(err.stack);
|
||||
}
|
||||
});
|
||||
if (!process.env['VSCODE_HANDLES_UNCAUGHT_ERRORS']) {
|
||||
// Handle uncaught exceptions
|
||||
process.on('uncaughtException', function (err) {
|
||||
console.error('Uncaught Exception: ', err.toString());
|
||||
if (err.stack) {
|
||||
console.error(err.stack);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Kill oneself if one's parent dies. Much drama.
|
||||
if (process.env['VSCODE_PARENT_PID']) {
|
||||
@@ -138,4 +140,4 @@ if (typeof crashReporterOptionsRaw === 'string') {
|
||||
}
|
||||
}
|
||||
|
||||
require('./bootstrap-amd').bootstrap(process.env['AMD_ENTRYPOINT']);
|
||||
require('./bootstrap-amd').bootstrap(process.env['AMD_ENTRYPOINT']);
|
||||
|
||||
@@ -141,6 +141,7 @@ export class ExtensionHostProcessWorker {
|
||||
VERBOSE_LOGGING: true,
|
||||
VSCODE_WINDOW_ID: String(this._windowService.getCurrentWindowId()),
|
||||
VSCODE_IPC_HOOK_EXTHOST: pipeName,
|
||||
VSCODE_HANDLES_UNCAUGHT_ERRORS: true,
|
||||
ELECTRON_NO_ASAR: '1'
|
||||
}),
|
||||
// We only detach the extension host on windows. Linux and Mac orphan by default
|
||||
|
||||
Reference in New Issue
Block a user