From ed0121dc3a817f863005aaa08a3c428fb539ce78 Mon Sep 17 00:00:00 2001 From: "zed-zippy[bot]" <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Fri, 7 Nov 2025 07:07:06 +0000 Subject: [PATCH] project: Remove unnecessary panic (#42167) (cherry-pick to preview) (#42168) Cherry-pick of #42167 to preview ---- If we are in a remote session with the remote dropped, this path is very much reachable if the call to this function got queued up in a task. Fixes ZED-124 Release Notes: - N/A *or* Added/Fixed/Improved ... Co-authored-by: Lukas Wirth --- crates/project/src/lsp_store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/project/src/lsp_store.rs b/crates/project/src/lsp_store.rs index 9444f0f4d7bcde134690d4bab580a2432228d787..a6d267b0f9f3dc7c3f22f5466ac19fea98cd0bdd 100644 --- a/crates/project/src/lsp_store.rs +++ b/crates/project/src/lsp_store.rs @@ -4193,7 +4193,7 @@ impl LspStore { }) .detach(); } else { - panic!("oops!"); + // Our remote connection got closed } handle }