diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs index 7b6aba72c4..83aba85bd3 100644 --- a/crates/project/src/project.rs +++ b/crates/project/src/project.rs @@ -7968,7 +7968,7 @@ impl Project { } pub fn language_server_for_id(&self, id: LanguageServerId) -> Option> { - if let LanguageServerState::Running { server, .. } = self.language_servers.get(&id)? { + if let Some(LanguageServerState::Running { server, .. }) = self.language_servers.get(&id) { Some(server.clone()) } else if let Some((_, server)) = self.supplementary_language_servers.get(&id) { Some(Arc::clone(server))