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

Method register

crates/opencode-lsp/src/lib.rs:815–817  ·  view source on GitHub ↗
(&self, id: String, client: Arc<LspClient>)

Source from the content-addressed store, hash-verified

813 }
814
815 pub async fn register(&self, id: String, client: Arc<LspClient>) {
816 self.clients.write().await.insert(id, client);
817 }
818
819 pub async fn get(&self, id: &str) -> Option<Arc<LspClient>> {
820 self.clients.read().await.get(id).cloned()

Calls

no outgoing calls

Tested by

no test coverage detected