mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
tsfmt - src
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
import {onUnexpectedError} from 'vs/base/common/errors';
|
||||
import { onUnexpectedError } from 'vs/base/common/errors';
|
||||
import { TPromise } from 'vs/base/common/winjs.base';
|
||||
import { ExtensionHostMain, IInitData, exit } from 'vs/workbench/node/extensionHostMain';
|
||||
import { create as createIPC, IMainProcessExtHostIPC } from 'vs/platform/extensions/common/ipcRemoteCom';
|
||||
@@ -18,7 +18,7 @@ interface IRendererConnection {
|
||||
|
||||
// This calls exit directly in case the initialization is not finished and we need to exit
|
||||
// Otherwise, if initialization completed we go to extensionHostMain.terminate()
|
||||
let onTerminate = function() {
|
||||
let onTerminate = function () {
|
||||
exit();
|
||||
};
|
||||
|
||||
@@ -68,7 +68,7 @@ function connectToRenderer(): TPromise<IRendererConnection> {
|
||||
});
|
||||
|
||||
// Print a console message when an exception isn't handled.
|
||||
process.on('uncaughtException', function(err) {
|
||||
process.on('uncaughtException', function (err) {
|
||||
onUnexpectedError(err);
|
||||
});
|
||||
|
||||
@@ -82,7 +82,7 @@ function connectToRenderer(): TPromise<IRendererConnection> {
|
||||
}, 5000);
|
||||
|
||||
// Check stats
|
||||
setInterval(function() {
|
||||
setInterval(function () {
|
||||
if (stats.length >= 250) {
|
||||
let total = stats.reduce((prev, current) => prev + current, 0);
|
||||
console.warn(`MANY messages are being SEND FROM the extension host!`);
|
||||
|
||||
Reference in New Issue
Block a user