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

Function json_rpc_request

src/lsp/mod.rs:194–202  ·  view source on GitHub ↗
(id: u64, method: &str, params: Value)

Source from the content-addressed store, hash-verified

192}
193
194fn json_rpc_request(id: u64, method: &str, params: Value) -> String {
195 json!({
196 "jsonrpc": "2.0",
197 "id": id,
198 "method": method,
199 "params": params
200 })
201 .to_string()
202}
203
204pub fn json_rpc_notification(method: &str, params: Value) -> String {
205 json!({

Callers 1

lsp_workerFunction · 0.85

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected