Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Definition
Namespace: Microsoft.CommandPalette.Extensions
This is the interface that an extension must implement to provide commands to the Command Palette. The Command Palette will call this interface to get the commands that it should display.
Properties
| Property | Type | Description |
|---|---|---|
| DisplayName | String | The display name of the command provider. This is used to identify the provider in the Command Palette. |
| Frozen | Boolean | Indicates whether the command provider is frozen. A frozen command provider will not be updated or refreshed. |
| Icon | IIconInfo | The icon associated with the command provider. This is used to display an icon in the Command Palette. |
| Id | String | The unique identifier of the command provider. This is used to identify the provider in the Command Palette. |
| Settings | ICommandSettings | The settings associated with the command provider. This is used to provide additional information or resources related to the item being displayed in the Command Palette. |
Methods
| Method | Description |
|---|---|
| FallbackCommands() | Returns the fallback commands for the command provider. |
| GetCommand(String) | Returns the command associated with the specified ID. |
| InitializeWithHost(IExtensionHost) | Initializes the command provider with the specified host. This is called when the command provider is first created. |
| TopLevelCommands() | Returns the top-level commands for the command provider. |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Windows developer