ProvideHover

Function ProvideHover 

Source
pub fn ProvideHover(
    DocumentURI: Url,
    PositionDTO: PositionDTO,
) -> ActionEffect<Arc<dyn LanguageFeatureProviderRegistry>, CommonError, Option<HoverResultDTO>>
Expand description

Creates an effect that, when executed, will request hover information for a symbol at a given position in a document.

It uses the LanguageFeatureProviderRegistry capability from the environment to find and invoke the appropriate hover provider.

§Parameters

  • DocumentURI: The Url of the document in which the hover was requested.
  • PositionDTO: The line and column PositionDTO where the hover was requested.

§Returns

An ActionEffect that resolves with an Option<HoverResultDTO>, containing the hover content if a provider was found and returned a result, or None otherwise.