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

@@ -79,11 +79,11 @@ export class MainThreadCommands implements MainThreadCommandsShape {
return this._commandService.executeCommand<T>(id, ...args);
}
$onDidExecuteCommand() {
$registerCommandListener() {
this._onDidExecuteCommandListener = this._commandService.onDidExecuteCommand((command) => this.handleExecuteCommand(command));
}
$disposeListener() {
$unregisterCommandListener() {
return this._onDidExecuteCommandListener.dispose();
}