renamed listeners to registerCommandListener and unregisterCommandListener

This commit is contained in:
Harry Hedger
2019-04-30 05:57:47 -07:00
parent 62f2b712f0
commit ab7694754b
3 changed files with 6 additions and 6 deletions

View File

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