MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_diagnostics

Method get_diagnostics

crates/opencode-lsp/src/lib.rs:377–384  ·  view source on GitHub ↗
(&self, path: &Path)

Source from the content-addressed store, hash-verified

375 }
376
377 pub async fn get_diagnostics(&self, path: &Path) -> Vec<Diagnostic> {
378 self.diagnostics
379 .read()
380 .await
381 .get(path)
382 .cloned()
383 .unwrap_or_default()
384 }
385
386 /// Returns all diagnostics from all files this LSP server has reported on.
387 pub async fn get_all_diagnostics(&self) -> HashMap<PathBuf, Vec<Diagnostic>> {

Callers 4

handle_debug_commandFunction · 0.80
execute_with_lspFunction · 0.80

Calls 2

readMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected