MCPcopy Create free account
hub / github.com/Eeive/Evcode-ide / json_rpc_notification

Function json_rpc_notification

src/lsp/mod.rs:204–211  ·  view source on GitHub ↗
(method: &str, params: Value)

Source from the content-addressed store, hash-verified

202}
203
204pub 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
213async fn handle_lsp_response(body: &str, tx: &mpsc::Sender<LspMessage>) -> bool {
214 let Ok(val): Result<Value, _> = serde_json::from_str(body) else {

Callers 2

notify_lsp_did_openMethod · 0.85

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected