Protected
Readonly
_Protected
Readonly
_Protected
_List of recently used commands.
Protected
Readonly
contributionProtected
fireReadonly
onProtected
Readonly
onReadonly
onAn event is emitted when a command was executed.
Protected
Readonly
onReadonly
onAn event is emitted when a command is about to be executed.
It can be used to install or activate a command handler.
Protected
Readonly
onProtected
Readonly
toGet all registered commands identifiers.
Get all registered commands.
Clear the list of recently used commands.
Protected
doProtected
doeslint-disable-next-line @typescript-eslint/no-explicit-any
Protected
fireeslint-disable-next-line @typescript-eslint/no-explicit-any
eslint-disable-next-line @typescript-eslint/no-explicit-any
Returns with all handlers for the given command. If the command does not have any handlers, or the command is not registered, returns an empty array.
eslint-disable-next-line @typescript-eslint/no-explicit-any
eslint-disable-next-line @typescript-eslint/no-explicit-any
eslint-disable-next-line @typescript-eslint/no-explicit-any
eslint-disable-next-line @typescript-eslint/no-explicit-any
eslint-disable-next-line @typescript-eslint/no-explicit-any
Register the given command and handler if present.
Throw if a command is already registered for the given command identifier.
Optional
handler: CommandHandlerRegister the given handler for the given command identifier.
If there is already a handler for the given command then the given handler is registered as more specific, and has higher priority during enablement, visibility and toggle state evaluations.
Unregister command from the registry
The command registry manages commands and handlers.