Ignore createProgress request in tests

closes #3783
This commit is contained in:
Aleksey Kladov 2020-03-31 12:02:47 +02:00
parent 6f0d8db529
commit 6b2f02fdfd
2 changed files with 8 additions and 7 deletions

View File

@ -808,14 +808,14 @@ fn send_startup_progress(sender: &Sender<Message>, loop_state: &mut LoopState) {
),
_ => {}
}
}
fn send_startup_progress_notif(sender: &Sender<Message>, work_done_progress: WorkDoneProgress) {
let notif = notification_new::<req::Progress>(req::ProgressParams {
token: req::ProgressToken::String("rustAnalyzer/startup".into()),
value: req::ProgressParamsValue::WorkDone(work_done_progress),
});
sender.send(notif.into()).unwrap();
fn send_startup_progress_notif(sender: &Sender<Message>, work_done_progress: WorkDoneProgress) {
let notif = notification_new::<req::Progress>(req::ProgressParams {
token: req::ProgressToken::String("rustAnalyzer/startup".into()),
value: req::ProgressParamsValue::WorkDone(work_done_progress),
});
sender.send(notif.into()).unwrap();
}
}
struct PoolDispatcher<'a> {

View File

@ -188,6 +188,7 @@ fn send_request_(&self, r: Request) -> Value {
self.client.sender.send(r.into()).unwrap();
while let Some(msg) = self.recv() {
match msg {
Message::Request(req) if req.method == "window/workDoneProgress/create" => (),
Message::Request(req) => panic!("unexpected request: {:?}", req),
Message::Notification(_) => (),
Message::Response(res) => {