Theia API Documentation v1.77.0
    Preparing search index...

    Function registerDocumentHighlightProvider

    • Register a document highlight provider.

      By default, multiple providers can be registered for a language. In that case providers are sorted by their score and groups sequentially asked for document highlights. The process stops when a provider returns a non-falsy or non-failure result. When editor.occurrencesHighlightFromAllProviders is enabled, matching providers are asked in parallel and their results are merged, preserving the highest-priority provider's kind for duplicate ranges.

      Parameters

      Returns Disposable

      A disposable that unregisters this provider when being disposed.