Fix Diagnostics #93

This commit is contained in:
2026-06-30 07:08:39 +02:00
parent 3ff4c2ab08
commit bfaa9eeea5
2 changed files with 35 additions and 12 deletions
+17
View File
@@ -374,6 +374,23 @@ impl RustAnalyzer {
.await
}
pub async fn did_save(
&mut self,
uri: Url,
text: &str,
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
self.notify(
"textDocument/didSave",
json!({
"textDocument": {
"uri": uri,
},
"text": text,
}),
)
.await
}
pub async fn did_close(
&mut self,
uri: Url,