Executes the command with the given command identifier.
The result type of the command.
Identifier of the command to execute.
A {@link Promise} that resolves to the result of the given command.
Registers a command that can be invoked by an action or menu item, or directly (with commands.executeCommand).
A unique identifier for the command.
A command function. If it returns a {@link Promise}, execution waits until it is resolved.
Unsubscribable to unregister this command.
Generated using TypeDoc
Commands are functions that are implemented and registered by extensions. Extensions can invoke any command (including commands registered by other extensions). The extension can also define contributions (in package.json), such as actions and menu items, that invoke a command.