RegisterProvider

Function RegisterProvider 

Source
pub fn RegisterProvider(
    ProviderType: ProviderType,
    SelectorDTO: Value,
    SideCarIdentifier: String,
    ExtensionIdentifierDTO: Value,
    OptionsDTO: Option<Value>,
) -> ActionEffect<Arc<dyn LanguageFeatureProviderRegistry>, CommonError, u32>
Expand description

Creates an effect that, when executed, will register a new language feature provider with the host’s central registry.

It uses the LanguageFeatureProviderRegistry capability from the environment.

§Parameters

  • ProviderType: The enum variant identifying the feature type.
  • SelectorDTO: The document selector that determines when this provider is active.
  • SideCarIdentifier: The ID of the sidecar hosting the provider logic.
  • ExtensionIdentifierDTO: The ID of the extension contributing the provider.
  • OptionsDTO: Optional, feature-specific options.

§Returns

An ActionEffect that resolves with a unique u32 handle for the registration.