From f8b7e95481fee5c9a7ee4def990985a068acbc3a Mon Sep 17 00:00:00 2001 From: Konstantin Keller <30801340+koskeller@users.noreply.github.com> Date: Tue, 11 Apr 2023 00:55:52 +0300 Subject: [PATCH] LSP: Gracefully handle 'workspace/configuration' from a stopped server (#6693) --- helix-term/src/application.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index f7d7fa636..4d28c8bed 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -1033,8 +1033,7 @@ impl Application { None => self .editor .language_servers - .get_by_id(server_id) - .unwrap() + .get_by_id(server_id)? .config()?, }; if let Some(section) = item.section.as_ref() {