Expand description
LSP server implementation โ JSON-RPC over stdin/stdout (P1.3).
Structsยง
- LspServer
- The LSP server state.
Functionsยง
- diagnostic_
to_ lsp - Diagnostic to LSP form.
- diagnostic_
to_ lsp_ with_ src - Convert a vibe Diagnostic to an LSP diagnostic JSON value (with source text for exact line/col).
- encode_
message - LSP message framing: Content-Length header + blank line + JSON body.
- get_
diagnostics - Get diagnostics for a VibeScript source string.
- offset_
to_ position - Convert a byte offset to an LSP (0-based line, 0-based character) position.
- read_
message - Read one LSP message from the reader. Returns None on EOF.
- severity_
for_ ๐code - Map a DiagCode to an LSP severity (1=Error, 2=Warning, 3=Info, 4=Hint).