From a2ac5ae47866e2d3af65df87251170dce92b0477 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Wed, 20 Sep 2023 14:35:56 +0300 Subject: [PATCH] Fix RPC logs not being displayed for supplementary servers --- crates/project/src/project.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))