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.Toolkit
The ExtensionHost class is a base class for creating extension hosts in the Command Palette. It provides methods for logging messages, showing and hiding status messages, and initializing the extension host with an instance of IExtensionHost.
Properties
| Property | Type | Description |
|---|---|---|
| Host | IExtensionHost | Gets the instance of the extension host that is associated with this extension. This property is used to access the extension host's methods and properties. |
Methods
| Method | Description |
|---|---|
| HideStatus(IStatusMessage) | Hides the status message that is currently being displayed in the command palette. |
| Initialize(IExtensionHost) | Initializes the extension host with an instance of IExtensionHost. |
| LogMessage(ILogMessage) | Logs a message to the command palette. |
| LogMessage(String) | Logs a message to the command palette. |
| ShowStatus(IStatusMessage) | Shows a status message in the command palette. |
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