aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-15 08:34:38 +0000
committerBlaž Hrastnik2021-04-15 08:34:38 +0000
commit3b90317060d92de803befbbfc5ffc2929e85a9c0 (patch)
treeb678cf99d6ea2b60eda14af986c86b4586a98d55 /helix-term
parent305a059f583ba0de3217506d4f89fc462de98cc0 (diff)
Add window/showMessage / logMessage stubs so gopls fully starts.
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/application.rs7
1 files changed, 7 insertions, 0 deletions
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!(),
}
}