Skip to main content

format_range

Function format_range 

Source
pub fn format_range(doc: &DocumentState, range: Range) -> Vec<TextEdit>
Expand description

Range formatting: the whole-document structural format (a line’s depth depends on the lines above it — depth is a document-level fact), filtered to the edits whose lines intersect the requested range. Sound because format_source is line-count preserving: every edit stays on its line.