summaryrefslogtreecommitdiff
path: root/helix-lsp
diff options
context:
space:
mode:
Diffstat (limited to 'helix-lsp')
-rw-r--r--helix-lsp/src/lib.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/helix-lsp/src/lib.rs b/helix-lsp/src/lib.rs
index dd925c14..6dcc6605 100644
--- a/helix-lsp/src/lib.rs
+++ b/helix-lsp/src/lib.rs
@@ -123,6 +123,8 @@ pub mod util {
#[derive(Debug, PartialEq, Clone)]
pub enum Notification {
PublishDiagnostics(lsp::PublishDiagnosticsParams),
+ ShowMessage(lsp::ShowMessageParams),
+ LogMessage(lsp::LogMessageParams),
}
impl Notification {
@@ -138,6 +140,19 @@ impl Notification {
// TODO: need to loop over diagnostics and distinguish them by URI
Notification::PublishDiagnostics(params)
}
+
+ lsp::notification::ShowMessage::METHOD => {
+ let params: lsp::ShowMessageParams =
+ params.parse().expect("Failed to parse ShowMessage params");
+
+ Notification::ShowMessage(params)
+ }
+ lsp::notification::LogMessage::METHOD => {
+ let params: lsp::LogMessageParams =
+ params.parse().expect("Failed to parse ShowMessage params");
+
+ Notification::LogMessage(params)
+ }
_ => unimplemented!("unhandled notification: {}", method),
}
}