Used internally by LspTextEditor to manage command requests.

Constructor

new(textEditor:LspTextEditor)

Creates a new CommandManager object.

Methods

hasCommand(id:String):Bool

Returns true if a command has been registered.

registerCommand(id:String, command:Function):Void

Registers a command with the specified identifier.

runCommand(command:Command, ?callback:Function):Void

Runs a command, and passes the result to the callback. If the command has not been registered, throws an ArgumentError.