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.
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-falsyornon-failureresult. Wheneditor.occurrencesHighlightFromAllProvidersis enabled, matching providers are asked in parallel and their results are merged, preserving the highest-priority provider's kind for duplicate ranges.