diff options
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r-- | helix-term/src/application.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index ae7e22bd..42a46f1e 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -145,7 +145,11 @@ impl Application { use helix_lsp::{Call, Notification}; match call { Call::Notification(helix_lsp::jsonrpc::Notification { method, params, .. }) => { - let notification = Notification::parse(&method, params); + let notification = match Notification::parse(&method, params) { + Some(notification) => notification, + None => return, + }; + // TODO: parse should return Result/Option match notification { Notification::PublishDiagnostics(params) => { |