Retrieve the list of all available commands. Commands starting an underscore are treated as internal commands.
Set true
to not see internal commands (starting with an underscore)
Thenable that resolves to a list of command ids.
Get the keybindings associated to commandId.
The ID of the command for which we are looking for keybindings.
Register the given command and handler if present.
Throw if a command is already registered for the given command identifier.
Registers a diff information command that can be invoked via a keyboard shortcut, a menu item, an action, or directly.
Diff information commands are different from ordinary commands as they only execute when there is an active diff editor when the command is called, and the diff information has been computed. Also, the command handler of an editor command has access to the diff information.
A unique identifier for the command.
A command handler function with access to the diff information.
The this
context used when invoking the handler function.
Disposable which unregisters this command on disposal.
Register the given handler for the given command identifier.
a given command id
a command handler
Throw if a handler for the given command identifier is already registered.
Registers a text editor command that can be invoked via a keyboard shortcut, a menu item, an action, or directly.
A unique identifier for the command.
The this
context used when invoking the handler function.
Disposable which unregisters this command on disposal.
Execute the active handler for the given command and arguments.
Reject if a command cannot be executed.