provideSelectionRanges
abstract fun provideSelectionRanges(document: TextDocument, positions: ReadonlyArray<Position>, token: CancellationToken): ProviderResult<ReadonlyArray<SelectionRange>>(source)
Provide selection ranges for the given positions.
Selection ranges should be computed individually and independent for each position. The editor will merge and deduplicate ranges but providers must return hierarchies of selection ranges so that a range is contained by its parent.
Parameters
document
The document in which the command was invoked.
positions
The positions at which the command was invoked.
token
A cancellation token.