aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-11 10:13:10 +0100
committerbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-11 10:13:10 +0100
commitfa3716efe67f97929ad1351c9a07cc914e0bdf45 (patch)
tree380f0680aed256d28db5f535d7aa0e480aa489e0 /crates/ra_lsp_server/src/main_loop.rs
parent46d7b08c5f0440fed43399ffe925e30bfe95e5dd (diff)
parente81a47b8ebce9bcf680b15c6e0c1e879200f75df (diff)
Merge #1520
1520: Ignore workspace/didChangeConfiguration notifications. r=matklad a=bolinfest If the client happens to send a `workspace/didChangeConfiguration` notification, it is nicer if rust-analyzer can just ignore it rather than crash with an "unhandled notification" error. Co-authored-by: Michael Bolin <[email protected]>
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop.rs')
-rw-r--r--crates/ra_lsp_server/src/main_loop.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs
index f7becd8fb..668d2fd72 100644
--- a/crates/ra_lsp_server/src/main_loop.rs
+++ b/crates/ra_lsp_server/src/main_loop.rs
@@ -431,6 +431,12 @@ fn on_notification(
431 } 431 }
432 Err(not) => not, 432 Err(not) => not,
433 }; 433 };
434 let not = match not.cast::<req::DidChangeConfiguration>() {
435 Ok(_params) => {
436 return Ok(());
437 }
438 Err(not) => not,
439 };
434 log::error!("unhandled notification: {:?}", not); 440 log::error!("unhandled notification: {:?}", not);
435 Ok(()) 441 Ok(())
436} 442}