Skip to main content

format_edits

Function format_edits 

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

The edits to apply for textDocument/formatting: a single whole-document replacement, or an empty list when the input is already formatted (so the editor records no change).