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

Method new

crates/opencode-lsp/src/lib.rs:809–813  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

807
808impl LspClientRegistry {
809 pub fn new() -> Self {
810 Self {
811 clients: RwLock::new(HashMap::new()),
812 }
813 }
814
815 pub async fn register(&self, id: String, client: Arc<LspClient>) {
816 self.clients.write().await.insert(id, client);

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected