Skip to main content

format_range

Function format_range 

Source
pub fn format_range(source: &str, range: Range) -> Option<Vec<TextEdit>>
Expand description

Format only the lines covered by range. Extracts those lines, formats the snippet, then returns an edit targeting just that range.