Expand description
Pending<T> – the typed handle returned by every actor-side
request. Mirrors lattice_runtime::Pending (DESIGN.md §5.2.1)
but parameterised over LspError so server-side error codes
survive on the way back to the caller.
Three usage patterns, identical to the runtime’s Pending:
- Async caller (the editor’s input pipeline):
pending.await. - Sync caller in tokio (
#[tokio::test]): same. - Sync caller outside tokio (the TUI input loop):
pending.blocking_recv()parks the current thread.
Structs§
- Invocation
Id - Process-monotonic id for an LSP request – distinct from the
JSON-RPC
RequestIdon the wire (which is per-server). Useful for telemetry: anInvocationIdsurvives a server restart while the wire id resets. - Pending
- One in-flight LSP request awaiting a response.