CommandProvider
Since Plugin API: 1.0.0
A command provider contributes commands from a plugin.
Signature
interface CommandProvider { type: "command"; id: string; name: string; commands: Command[] | ((api: PluginAPI) => Command[]);}Members
| Name | Type | Required | Description |
|---|---|---|---|
type |
"command" |
yes | - |
id |
string |
yes | Provider identifier |
name |
string |
yes | Human-readable name |
commands |
Command[] | (api: PluginAPI) => Command[] |
yes | Reactive contributions. The factory receives this plugin’s scoped API. |