Hecr::LSP::Server
JSON-RPC/LSP server. Features: incremental sync, diagnostics (errors + unknown-component warnings), completion, definition, references, document highlight, workspace symbols, document symbols, hover, signature help, rename (+ prepareRename and willRenameFiles), code actions, formatting, on-type tag auto-closing, linked editing, folding, selection ranges, document links, call hierarchy, and the hecr.showGeneratedCode command. Positions are UTF-16 per the spec.
Constants
MAX_CONTENT_LENGTH = (32 * 1024) * 1024
Largest message body accepted (32 MiB) — far above any real source file, low enough that a bogus Content-Length can't exhaust memory.
MAX_HEADER_LINE = 8 * 1024
Header lines are tiny in practice; bound them so a client cannot stream an unbounded header line (or a flood of them) before the blank line.
MAX_HEADERS = 64
Constructors
Instance methods
run
Source