Removed disposeListeners from commandService and only remove listener on MainThreadCommands

This commit is contained in:
Harry Hedger
2019-04-30 03:04:16 -07:00
parent 43e0b18c5b
commit 62f2b712f0
11 changed files with 7 additions and 15 deletions

View File

@@ -49,7 +49,7 @@ export class ExtHostCommands implements ExtHostCommandsShape {
this._proxy = mainContext.getProxy(MainContext.MainThreadCommands);
this._onDidExecuteCommand = new Emitter<ICommandEvent>({
onFirstListenerDidAdd: this._proxy.$onDidExecuteCommand,
onLastListenerRemove: this._proxy.$disposeListeners,
onLastListenerRemove: this._proxy.$disposeListener,
});
this.onDidExecuteCommandEmitter = this._onDidExecuteCommand.event;
this._logService = logService;