Plugin
โบ addCommand
Plugin.addCommand() method
Register a command globally. Registered commands will be available from the @{link https://help.md/Plugins/Command+palette Command palette}. The command id and name will be automatically prefixed with this pluginโs id and name.
Signature:
addCommand(command: Command): Command;
Parameters
Parameter | Type | Description |
---|---|---|
command | Command |
Returns: