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

Method with_lsp_registry

crates/opencode-session/src/prompt.rs:159–162  ·  view source on GitHub ↗
(mut self, registry: Arc<opencode_lsp::LspClientRegistry>)

Source from the content-addressed store, hash-verified

157 }
158
159 pub fn with_lsp_registry(mut self, registry: Arc<opencode_lsp::LspClientRegistry>) -> Self {
160 self.lsp_registry = Some(registry);
161 self
162 }
163
164 pub async fn assert_not_busy(&self, session_id: &str) -> anyhow::Result<()> {
165 let state = self.state.lock().await;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected