fix: remove potential panic on initialize result serialization in nvim-core
This commit is contained in:
1 parent
b2f15de58c
commit
1e39122e05
1 file changed
+1
-1
@@ -610,7 +610,7 @@ pub async fn run_mcp_loop(app_name: &str, app_version: &str) {
|
|||||||
send_response(JsonRpcResponse {
|
send_response(JsonRpcResponse {
|
||||||
jsonrpc: "2.0".to_string(),
|
jsonrpc: "2.0".to_string(),
|
||||||
id,
|
id,
|
||||||
result: Some(serde_json::to_value(init).unwrap()),
|
result: Some(serde_json::to_value(init).unwrap_or_default()),
|
||||||
error: None,
|
error: None,
|
||||||
})
|
})
|
||||||
.await;
|
.await;
|
||||||
|
|||||||
Reference in new issue
Block a user