Skip to main content

format_range_edits

Function format_range_edits 

Source
pub fn format_range_edits(
    text: &str,
    range: Range,
    options: &FormatOptions,
) -> Vec<TextEdit>
Expand description

The edits to apply for textDocument/rangeFormatting: reformat only the statements the range touches, as one minimal replacement, or an empty list when nothing changes.