reindentEditsForRanges
reindentEditsForRanges(
text,ranges,options?): readonlyTextEdit[]
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.
Parameters
Section titled “Parameters”string
ranges
Section titled “ranges”readonly TextOffsetRange[]
options?
Section titled “options?”Returns
Section titled “Returns”readonly TextEdit[]