(method: &str, params: Value)
| 202 | } |
| 203 | |
| 204 | pub fn json_rpc_notification(method: &str, params: Value) -> String { |
| 205 | json!({ |
| 206 | "jsonrpc": "2.0", |
| 207 | "method": method, |
| 208 | "params": params |
| 209 | }) |
| 210 | .to_string() |
| 211 | } |
| 212 | |
| 213 | async fn handle_lsp_response(body: &str, tx: &mpsc::Sender<LspMessage>) -> bool { |
| 214 | let Ok(val): Result<Value, _> = serde_json::from_str(body) else { |
no test coverage detected