Skip to main content

spawn_lsp

Function spawn_lsp 

Source
pub fn spawn_lsp(
    root_dir: Option<PathBuf>,
    script: &Path,
) -> Receiver<LspOutcome>
Expand description

Spawn the server in the background and run the initialize handshake there (cold starts take seconds). The receiver gets exactly one outcome; a missing binary fails fast and loudly, never silently.