From d3e105549023071786852a9107fd08d4a3dbe5b1 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Thu, 20 Dec 2018 10:06:40 +0100 Subject: [PATCH] no more special listener thresholds, #63655 --- src/vs/editor/common/services/modelServiceImpl.ts | 2 +- .../parts/extensions/node/extensionsWorkbenchService.ts | 4 ++-- .../services/configuration/node/configurationService.ts | 2 +- .../services/decorations/browser/decorationsService.ts | 2 +- .../services/extensions/electron-browser/extensionService.ts | 2 +- .../services/themes/electron-browser/workbenchThemeService.ts | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vs/editor/common/services/modelServiceImpl.ts b/src/vs/editor/common/services/modelServiceImpl.ts index a00463a4ad3..8cf29738393 100644 --- a/src/vs/editor/common/services/modelServiceImpl.ts +++ b/src/vs/editor/common/services/modelServiceImpl.ts @@ -268,7 +268,7 @@ export class ModelServiceImpl extends Disposable implements IModelService { private readonly _onModelRemoved: Emitter = this._register(new Emitter()); public readonly onModelRemoved: Event = this._onModelRemoved.event; - private readonly _onModelModeChanged: Emitter<{ model: ITextModel; oldModeId: string; }> = this._register(new Emitter<{ model: ITextModel; oldModeId: string; }>({ leakWarningThreshold: 500 })); + private readonly _onModelModeChanged: Emitter<{ model: ITextModel; oldModeId: string; }> = this._register(new Emitter<{ model: ITextModel; oldModeId: string; }>()); public readonly onModelModeChanged: Event<{ model: ITextModel; oldModeId: string; }> = this._onModelModeChanged.event; private _modelCreationOptionsByLanguageAndResource: { diff --git a/src/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts b/src/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts index 94bc7fad276..62b7c34cf75 100644 --- a/src/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts +++ b/src/vs/workbench/parts/extensions/node/extensionsWorkbenchService.ts @@ -371,7 +371,7 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService, private autoUpdateDelayer: ThrottledDelayer; private disposables: IDisposable[] = []; - private readonly _onChange: Emitter = new Emitter({ leakWarningThreshold: 200 }); + private readonly _onChange: Emitter = new Emitter(); get onChange(): Event { return this._onChange.event; } private _extensionAllowedBadgeProviders: string[]; @@ -1110,4 +1110,4 @@ export class ExtensionsWorkbenchService implements IExtensionsWorkbenchService, this.syncDelayer.cancel(); this.disposables = dispose(this.disposables); } -} \ No newline at end of file +} diff --git a/src/vs/workbench/services/configuration/node/configurationService.ts b/src/vs/workbench/services/configuration/node/configurationService.ts index e879455a601..6a4e63bc7b0 100644 --- a/src/vs/workbench/services/configuration/node/configurationService.ts +++ b/src/vs/workbench/services/configuration/node/configurationService.ts @@ -52,7 +52,7 @@ export class WorkspaceService extends Disposable implements IWorkspaceConfigurat private workspaceEditingQueue: Queue; - protected readonly _onDidChangeConfiguration: Emitter = this._register(new Emitter({ leakWarningThreshold: 500 })); + protected readonly _onDidChangeConfiguration: Emitter = this._register(new Emitter()); public readonly onDidChangeConfiguration: Event = this._onDidChangeConfiguration.event; protected readonly _onDidChangeWorkspaceFolders: Emitter = this._register(new Emitter()); diff --git a/src/vs/workbench/services/decorations/browser/decorationsService.ts b/src/vs/workbench/services/decorations/browser/decorationsService.ts index fbe224d33d3..2e3b151afc9 100644 --- a/src/vs/workbench/services/decorations/browser/decorationsService.ts +++ b/src/vs/workbench/services/decorations/browser/decorationsService.ts @@ -339,7 +339,7 @@ export class FileDecorationsService implements IDecorationsService { private readonly _data = new LinkedList(); private readonly _onDidChangeDecorationsDelayed = new Emitter(); - private readonly _onDidChangeDecorations = new Emitter({ leakWarningThreshold: 500 }); + private readonly _onDidChangeDecorations = new Emitter(); private readonly _decorationStyles: DecorationStyles; private readonly _disposables: IDisposable[]; diff --git a/src/vs/workbench/services/extensions/electron-browser/extensionService.ts b/src/vs/workbench/services/extensions/electron-browser/extensionService.ts index e60b3e6c177..7b0caef6c98 100644 --- a/src/vs/workbench/services/extensions/electron-browser/extensionService.ts +++ b/src/vs/workbench/services/extensions/electron-browser/extensionService.ts @@ -48,7 +48,7 @@ export class ExtensionService extends Disposable implements IExtensionService { private _allRequestedActivateEvents: { [activationEvent: string]: boolean; }; private readonly _extensionScanner: CachedExtensionScanner; - private readonly _onDidRegisterExtensions: Emitter = this._register(new Emitter({ leakWarningThreshold: 500 })); + private readonly _onDidRegisterExtensions: Emitter = this._register(new Emitter()); public readonly onDidRegisterExtensions = this._onDidRegisterExtensions.event; private readonly _onDidChangeExtensionsStatus: Emitter = this._register(new Emitter()); diff --git a/src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts b/src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts index d5c5fa0653a..985f2617f21 100644 --- a/src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts +++ b/src/vs/workbench/services/themes/electron-browser/workbenchThemeService.ts @@ -103,7 +103,7 @@ export class WorkbenchThemeService implements IWorkbenchThemeService { this.colorThemeStore = new ColorThemeStore(extensionService, ColorThemeData.createLoadedEmptyTheme(DEFAULT_THEME_ID, DEFAULT_THEME_SETTING_VALUE)); this.onFileIconThemeChange = new Emitter(); this.iconThemeStore = new FileIconThemeStore(extensionService); - this.onColorThemeChange = new Emitter({ leakWarningThreshold: 500 }); + this.onColorThemeChange = new Emitter(); this.currentIconTheme = { id: '',