MCPcopy Create free account
hub / github.com/GCWing/BitFun / get_code_actions

Method get_code_actions

src/crates/services/services-core/src/lsp/manager.rs:478–498  ·  view source on GitHub ↗

Gets code actions.

(
        &self,
        language: &str,
        uri: &str,
        range: serde_json::Value,
        context: serde_json::Value,
    )

Source from the content-addressed store, hash-verified

476
477 /// Gets code actions.
478 pub async fn get_code_actions(
479 &self,
480 language: &str,
481 uri: &str,
482 range: serde_json::Value,
483 context: serde_json::Value,
484 ) -> Result<serde_json::Value> {
485 let process = self.get_process(language).await?;
486
487 let params = serde_json::json!({
488 "textDocument": {
489 "uri": uri
490 },
491 "range": range,
492 "context": context
493 });
494
495 process
496 .send_request("textDocument/codeAction", Some(params))
497 .await
498 }
499
500 /// Formats a document.
501 pub async fn format_document(

Callers 1

Calls 2

get_processMethod · 0.45
send_requestMethod · 0.45

Tested by

no test coverage detected