parent
6f0d8db529
commit
6b2f02fdfd
@ -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> {
|
||||
|
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user