Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Avoid sending null "params" in MCP notification (#54807)

Adam Kocoloski6787fb13ad10
diff --git a/crates/context_server/src/client.rs b/crates/context_server/src/client.rs
index 1c433d9fd34..b8a321d01b5 100644
--- a/crates/context_server/src/client.rs
+++ b/crates/context_server/src/client.rs
@@ -131,6 +131,7 @@ struct Notification<'a, T> {
jsonrpc: &'static str,
#[serde(borrow)]
method: &'a str,
+ #[serde(skip_serializing_if = "is_null_value")]
params: T,
}