Skip to main content

format_document

Function format_document 

Source
pub fn format_document(doc: &DocumentState) -> Vec<TextEdit>
Expand description

Handle document formatting request.

Formats the WHOLE document through the canonical LOGOS formatter ([logicaffeine_language::source_format::format_source] — identical to largo fmt, structural reindent and string/prose protection included) and emits per-line [TextEdit]s for the lines that changed.