registerSelectionRangeProvider
fun registerSelectionRangeProvider(selector: DocumentSelector, provider: SelectionRangeProvider): Disposable(source)
Register a selection range provider.
Multiple providers can be registered for a language. In that case providers are asked in parallel and the results are merged. A failing provider (rejected promise or exception) will not cause a failure of the whole operation.
Parameters
selector
A selector that defines the documents this provider is applicable to.
provider
A selection range provider.