From 3b90317060d92de803befbbfc5ffc2929e85a9c0 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 15 Apr 2021 17:34:38 +0900 Subject: Add window/showMessage / logMessage stubs so gopls fully starts. --- helix-term/src/application.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'helix-term/src') diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index b3ddbe15..8849ee81 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -152,6 +152,7 @@ impl Application { match call { Call::Notification(helix_lsp::jsonrpc::Notification { method, params, .. }) => { let notification = Notification::parse(&method, params); + // TODO: parse should return Result/Option match notification { Notification::PublishDiagnostics(params) => { let path = Some(params.uri.to_file_path().unwrap()); @@ -213,6 +214,12 @@ impl Application { self.render(); } } + Notification::ShowMessage(params) => { + log::warn!("unhandled window/showMessage: {:?}", params); + } + Notification::LogMessage(params) => { + log::warn!("unhandled window/logMessage: {:?}", params); + } _ => unreachable!(), } } -- cgit v1.2.3-70-g09d2