Expand description
Protocol-neutral language-server state and session messages (ADR-0011).
CLI and wire details stay in termesh-lsp; these types live here because the
application message bus and single-owner model must carry them without depending
on a backend.
Structs§
- Code
Action - Completion
Item - Diagnostic
- Document
Symbol - Hover
Text - Location
- LspFailure
- Symbol
Location - Text
Change - One replaced span, or a whole-document replacement when
rangeisNone. - Text
Edit - Text
Position - A position in a document.
charactercounts UTF-16 code units, which is what the protocol speaks. The editor speaks char offsets;termesh_editor::positionconverts. - Text
Range - Workspace
Edit - A set of edits across one or more files.
versionis the wire version the server authored against, when it supplied one.
Enums§
- Diagnostic
Origin - Which producer reported this. Cargo and a language server surface the same rustc diagnostics, so the problems panel needs to tell them apart to deduplicate.
- Diagnostic
Severity - LspEvent
- LspFailure
Kind - LspRequest
- Every response-bearing variant carries its correlation id first, so the model’s
active_*guard can drop a superseded reply. - Symbol
Kind - Watched
File Change