Skip to main content

manager_for_config

Function manager_for_config 

Source
pub fn manager_for_config(config: &Config) -> Option<Arc<LspManager>>
Expand description

Build the LspManager a fresh crate::Agent should install, given a resolved crate::Config — called once, from crate::agent::build_tool_context. Config::lsp_enabled is the ONE gate: false (the default) returns None WITHOUT spawning anything — the default-off byte-identity guarantee. true with an EMPTY Config::lsp_servers still returns a (harmless, does-nothing) manager, but warns once — an enabled module with no configured servers is very likely a config mistake, not silent-by-design.