sigildocs

(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 the full document and return a list of TextEdit, or '() if no formatting is needed or formatting failed.

format-rangeprocedure

Format a character range within the document. v1 strategy: format the substring in isolation and replace the range with the result when the formatter succeeds.