Skip to content

reindentEditsForRanges

reindentEditsForRanges(text, ranges, options?): readonly TextEdit[]

The same answer the reindent commands give, for callers that address the document by offset.

A feature that corrects one row as it is being typed is asking exactly what a reindent of that row asks, and a second implementation of it would be a second set of indentation rules to keep in step with the language records — the failure this module was consolidated to end.

string

readonly TextOffsetRange[]

EditorReindentOptions

readonly TextEdit[]