registerDocumentHighlightProvider

Register a document highlight provider.

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.

Parameters

selector

A selector that defines the documents this provider is applicable to.

provider

A document highlight provider.