aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/rust-analyzer/src/main_loop.rs14
-rw-r--r--crates/rust-analyzer/tests/heavy_tests/support.rs1
2 files changed, 8 insertions, 7 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs
index 79ea90cc9..d818243e3 100644
--- a/crates/rust-analyzer/src/main_loop.rs
+++ b/crates/rust-analyzer/src/main_loop.rs
@@ -808,14 +808,14 @@ fn send_startup_progress(sender: &Sender<Message>, loop_state: &mut LoopState) {
808 ), 808 ),
809 _ => {} 809 _ => {}
810 } 810 }
811}
812 811
813fn send_startup_progress_notif(sender: &Sender<Message>, work_done_progress: WorkDoneProgress) { 812 fn send_startup_progress_notif(sender: &Sender<Message>, work_done_progress: WorkDoneProgress) {
814 let notif = notification_new::<req::Progress>(req::ProgressParams { 813 let notif = notification_new::<req::Progress>(req::ProgressParams {
815 token: req::ProgressToken::String("rustAnalyzer/startup".into()), 814 token: req::ProgressToken::String("rustAnalyzer/startup".into()),
816 value: req::ProgressParamsValue::WorkDone(work_done_progress), 815 value: req::ProgressParamsValue::WorkDone(work_done_progress),
817 }); 816 });
818 sender.send(notif.into()).unwrap(); 817 sender.send(notif.into()).unwrap();
818 }
819} 819}
820 820
821struct PoolDispatcher<'a> { 821struct PoolDispatcher<'a> {
diff --git a/crates/rust-analyzer/tests/heavy_tests/support.rs b/crates/rust-analyzer/tests/heavy_tests/support.rs
index 67f3c9332..fc3c65ad9 100644
--- a/crates/rust-analyzer/tests/heavy_tests/support.rs
+++ b/crates/rust-analyzer/tests/heavy_tests/support.rs
@@ -188,6 +188,7 @@ impl Server {
188 self.client.sender.send(r.into()).unwrap(); 188 self.client.sender.send(r.into()).unwrap();
189 while let Some(msg) = self.recv() { 189 while let Some(msg) = self.recv() {
190 match msg { 190 match msg {
191 Message::Request(req) if req.method == "window/workDoneProgress/create" => (),
191 Message::Request(req) => panic!("unexpected request: {:?}", req), 192 Message::Request(req) => panic!("unexpected request: {:?}", req),
192 Message::Notification(_) => (), 193 Message::Notification(_) => (),
193 Message::Response(res) => { 194 Message::Response(res) => {