Skip to main content

lsp_runtime

Function lsp_runtime 

Source
pub fn lsp_runtime() -> &'static Runtime
Expand description

Phase 5.5.LSP.1: shared LSP runtime accessor. Multi-threaded, thread-name lattice-lsp. Owns the supervisor actor + per- server actors + read/write loops + diagnostic pumps + the debounced flush task. Survives for the editor’s lifetime.

Used by App::new to hand the runtime’s handle to LspSupervisor::spawn (the supervisor’s command-mailbox semantics require an explicit runtime affinity) and by every per-feature dispatcher (hover, definition, references, …) that needs to fire a request off the UI thread.