(sigil lsp formatting)
(sigil lsp formatting) - Document and range formatting.
Wraps (sigil format) to produce LSP TextEdit[] responses for textDocument/formatting and textDocument/rangeFormatting.
Exports
format-documentprocedureFormat the full document and return a list of TextEdit, or '() if no formatting is needed or formatting failed.
format-rangeprocedureFormat a character range within the document. v1 strategy: format the substring in isolation and replace the range with the result when the formatter succeeds.