aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-03-09 08:26:41 +0000
committerAleksey Kladov <[email protected]>2020-03-09 08:26:41 +0000
commit8aeab8d7b0e3c6273408ba705ab6b68df74cb89f (patch)
tree3c24a094b819ea490171b6e1b38aa9e0df6f631b /crates
parent5b3d97e449690cfb75ccf48ca5a92f7f7a95ea5e (diff)
Ignore client-specific notifications
closes #3523
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/main_loop.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs
index 580ad1f2c..5480b9e4d 100644
--- a/crates/rust-analyzer/src/main_loop.rs
+++ b/crates/rust-analyzer/src/main_loop.rs
@@ -631,6 +631,9 @@ fn on_notification(
631 } 631 }
632 Err(not) => not, 632 Err(not) => not,
633 }; 633 };
634 if not.method.starts_with("$/") {
635 return Ok(());
636 }
634 log::error!("unhandled notification: {:?}", not); 637 log::error!("unhandled notification: {:?}", not);
635 Ok(()) 638 Ok(())
636} 639}