Edit

ExtensionHost Class

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.