aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorKonstantin Keller2023-04-10 21:55:52 +0000
committerGitHub2023-04-10 21:55:52 +0000
commitf8b7e95481fee5c9a7ee4def990985a068acbc3a (patch)
tree407fdb14d9ca41d5d2adfb8cfa582c401823efa8 /helix-term/src
parent686a1e2f311932c2fcfeee6e8384ab8ce959d618 (diff)
LSP: Gracefully handle 'workspace/configuration' from a stopped server (#6693)
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/application.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index f7d7fa63..4d28c8be 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() {