MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_all_diagnostics

Method get_all_diagnostics

crates/opencode-lsp/src/lib.rs:387–389  ·  view source on GitHub ↗

Returns all diagnostics from all files this LSP server has reported on.

(&self)

Source from the content-addressed store, hash-verified

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>> {
388 self.diagnostics.read().await.clone()
389 }
390
391 pub fn subscribe(&self) -> broadcast::Receiver<LspEvent> {
392 self.event_tx.subscribe()

Callers 1

get_lsp_diagnostics_implFunction · 0.80

Calls 2

readMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected