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

Method list

crates/opencode-lsp/src/lib.rs:823–830  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

821 }
822
823 pub async fn list(&self) -> Vec<(String, Arc<LspClient>)> {
824 self.clients
825 .read()
826 .await
827 .iter()
828 .map(|(k, v)| (k.clone(), v.clone()))
829 .collect()
830 }
831
832 /// Returns true if any LSP clients are currently registered.
833 /// Mirrors the TS `LSP.hasClients(file)` which checks whether any server

Callers 1

test_registry_defaultFunction · 0.45

Calls 2

readMethod · 0.80
cloneMethod · 0.45

Tested by 1

test_registry_defaultFunction · 0.36