Skip to main content

spawn_modeline_forwarder

Function spawn_modeline_forwarder 

Source
pub fn spawn_modeline_forwarder(
    bus: Arc<EventBus>,
    store: LspProgressStoreHandle,
    runtime: &Handle,
)
Expand description

Spawn the LSP modeline forwarder (ML.3c). Subscribes the four event types, folds progress/status into the shared store, and republishes the lsp element content per attached buffer on every change. The host wires this at boot with the shared bus + the store handle it also keeps for :lsp-progress-cancel + the LSP runtime handle. A closed bus (all senders dropped) ends the task cleanly — never panics.