add new command getter

This commit is contained in:
Philipp Kühn
2020-11-13 09:58:30 +01:00
parent 6d73e60bfb
commit c3fa5ebf1b
2 changed files with 47 additions and 24 deletions

View File

@@ -129,6 +129,10 @@ export class Editor extends EventEmitter {
return this.commandManager.runSingleCommand(name)
}
public get commands() {
return this.commandManager.commands
}
/**
* Create a command chain to call multiple commands at once.
*/