Fix: read lsp_servers/mcp_servers from top-level config
Config struct deserializes from the "memory" subsection of config.json5, but lsp_servers and mcp_servers are top-level keys. Now explicitly extracted from the root after initial deserialization. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
949dacd861
commit
8d14c59d56
1 changed files with 8 additions and 0 deletions
|
|
@ -210,6 +210,14 @@ impl Config {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Top-level config sections (not inside "memory")
|
||||||
|
if let Some(servers) = root.get("lsp_servers") {
|
||||||
|
config.lsp_servers = serde_json::from_value(servers.clone()).unwrap_or_default();
|
||||||
|
}
|
||||||
|
if let Some(servers) = root.get("mcp_servers") {
|
||||||
|
config.mcp_servers = serde_json::from_value(servers.clone()).unwrap_or_default();
|
||||||
|
}
|
||||||
|
|
||||||
Some(config)
|
Some(config)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue