Skip to main content

Module lsp

Module lsp 

Source
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§

CodeAction
CompletionItem
Diagnostic
DocumentSymbol
HoverText
Location
LspFailure
SymbolLocation
TextChange
One replaced span, or a whole-document replacement when range is None.
TextEdit
TextPosition
A position in a document. character counts UTF-16 code units, which is what the protocol speaks. The editor speaks char offsets; termesh_editor::position converts.
TextRange
WorkspaceEdit
A set of edits across one or more files. version is the wire version the server authored against, when it supplied one.

Enums§

DiagnosticOrigin
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.
DiagnosticSeverity
LspEvent
LspFailureKind
LspRequest
Every response-bearing variant carries its correlation id first, so the model’s active_* guard can drop a superseded reply.
SymbolKind
WatchedFileChange

Type Aliases§

LspResult