Protected Readonly_Protected Readonly_Protected_List of recently used commands.
Protected ReadonlycontributionProtectedfireReadonlyonProtected ReadonlyonReadonlyonAn event is emitted when a command was executed.
Protected ReadonlyonReadonlyonAn event is emitted when a command is about to be executed.
It can be used to install or activate a command handler.
Protected ReadonlyonProtected ReadonlytoGet all registered commands identifiers.
Get all registered commands.
Clear the list of recently used commands.
ProtecteddoProtecteddoeslint-disable-next-line @typescript-eslint/no-explicit-any
Protectedfireeslint-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.
Optionalhandler: 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.