Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
context_servers: Document settings (#20907)
Marshall Bowers41fd9189e33b
diff --git a/crates/context_servers/src/manager.rs b/crates/context_servers/src/manager.rsindex 9b9520e223b..c95fcd239da 100644--- a/crates/context_servers/src/manager.rs+++ b/crates/context_servers/src/manager.rs@@ -38,13 +38,21 @@ use crate::{#[derive(Deserialize, Serialize, Default, Clone, PartialEq, Eq, JsonSchema, Debug)]pub struct ContextServerSettings {+ /// Settings for context servers used in the Assistant.#[serde(default)]pub context_servers: HashMap<Arc<str>, ServerConfig>,}#[derive(Deserialize, Serialize, Clone, PartialEq, Eq, JsonSchema, Debug, Default)]pub struct ServerConfig {+ /// The command to run this context server.+ ///+ /// This will override the command set by an extension.pub command: Option<ServerCommand>,+ /// The settings for this context server.+ ///+ /// Consult the documentation for the context server to see what settings+ /// are supported.#[schemars(schema_with = "server_config_settings_json_schema")]pub settings: Option<serde_json::Value>,}