registerDocumentHighlightProvider
external fun registerDocumentHighlightProvider(selector: DocumentSelector, provider: DocumentHighlightProvider): Disposable(source)
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
selector
A selector that defines the documents this provider is applicable to.
provider
A document highlight provider.