Skip to main content

Module manager

Module manager 

Source
Expand description

LspManager — lazily starts and manages LSP clients per file extension.

Provides a unified interface for diagnostics, file notifications, and lifecycle management across multiple language servers.

Structs§

LspManager
Manages lifecycle of multiple language server clients.

Enums§

LspConnectEvent
Status events emitted by LspManager when servers start, fail, or hit non-fatal trouble. Mirrors mcp::McpConnectEvent so the TUI event loop can render them as scrollback lines instead of having the manager write directly to stderr (which leaks into the input box while the renderer owns the screen — see lsp/mod.rs for the full plumbing rationale).

Functions§

build_lsp_manager
Build an LspManager from config, providing a unified entry point for CLI and daemon. Returns None if LSP is disabled in config.
build_lsp_manager_with_events
Build an LspManager paired with a receiver for connection-status events. TUI mode wires the receiver into the event loop so server start/failure surfaces as ✓ LSP server … / ✗ LSP server … scrollback lines, matching the MCP server flow. Returns None when LSP is disabled in config.