| title | CommandProvider.InitializeWithHost(IExtensionHost) Method | |||
|---|---|---|---|---|
| description | The InitializeWithHost method initializes the command provider with the specified host instance. | |||
| ms.date | 2/25/2025 | |||
| ms.topic | reference | |||
| no-loc |
|
CommandProvider.InitializeWithHost(IExtensionHost) Method
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
The InitializeWithHost method initializes the command provider with the specified host instance. This method is typically called when the command provider is being registered with the command palette, allowing it to access the host's services and capabilities.
host IExtensionHost
The host instance that provides access to the command palette's functionality. This parameter is used to initialize the command provider with the host's capabilities and services.