Made recommended changes

This commit is contained in:
Harry Hedger
2019-04-16 01:51:22 -07:00
parent 8755a2aa35
commit b9c3c20a75
13 changed files with 32 additions and 14 deletions

View File

@@ -82,6 +82,10 @@ export class MainThreadCommands implements MainThreadCommandsShape {
return this._commandService.onDidExecuteCommand((command) => this.handleExecuteCommand(command));
}
$disposeListeners() {
return this._commandService.disposeListeners();
}
$getCommands(): Promise<string[]> {
return Promise.resolve(Object.keys(CommandsRegistry.getCommands()));
}