provideDocumentRangeFormattingEdits
abstract fun provideDocumentRangeFormattingEdits(document: TextDocument, range: Range, options: FormattingOptions, token: CancellationToken): ProviderResult<ReadonlyArray<TextEdit>>(source)
Provide formatting edits for a range in a document.
The given range is a hint and providers can decide to format a smaller or larger range. Often this is done by adjusting the start and end of the range to full syntax nodes.
Parameters
document
The document in which the command was invoked.
range
The range which should be formatted.
options
Options controlling formatting.
token
A cancellation token.