diff --git a/crates/project/src/context_server_store.rs b/crates/project/src/context_server_store.rs index 342a59ab7d5530e8f2268f1c4b72ea44f302f807..59bef36f06502f11d06f76ac7819a4c9ea806176 100644 --- a/crates/project/src/context_server_store.rs +++ b/crates/project/src/context_server_store.rs @@ -199,12 +199,12 @@ impl ContextServerStore { ) } - /// Returns all configured context server ids, regardless of enabled state. + /// Returns all configured context server ids, excluding the ones that are disabled pub fn configured_server_ids(&self) -> Vec { self.context_server_settings - .keys() - .cloned() - .map(ContextServerId) + .iter() + .filter(|(_, settings)| settings.enabled()) + .map(|(id, _)| ContextServerId(id.clone())) .collect() }