diff options
author | Emil Lauridsen <[email protected]> | 2019-12-25 18:08:44 +0000 |
---|---|---|
committer | Emil Lauridsen <[email protected]> | 2019-12-25 18:08:44 +0000 |
commit | 178c23f50549298aad0dc0f098f8ed510a57f9d6 (patch) | |
tree | cd6a937505d5f14aec9c960ee7ac21a943f24118 /crates/ra_lsp_server/src/main_loop.rs | |
parent | 500fe46e6c0df7827d56c7cd07741533422e7743 (diff) |
Re-implement status display using LSP 3.15 progress event
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop.rs')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index 1f6175699..045e4660d 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs | |||
@@ -338,6 +338,14 @@ fn loop_turn( | |||
338 | task_sender.send(Task::Notify(not)).unwrap(); | 338 | task_sender.send(Task::Notify(not)).unwrap(); |
339 | } | 339 | } |
340 | } | 340 | } |
341 | CheckTask::Status(progress) => { | ||
342 | let params = req::ProgressParams { | ||
343 | token: req::ProgressToken::String("rustAnalyzer/cargoWatcher".to_string()), | ||
344 | value: req::ProgressParamsValue::WorkDone(progress), | ||
345 | }; | ||
346 | let not = notification_new::<req::Progress>(params); | ||
347 | task_sender.send(Task::Notify(not)).unwrap(); | ||
348 | } | ||
341 | }, | 349 | }, |
342 | Event::Msg(msg) => match msg { | 350 | Event::Msg(msg) => match msg { |
343 | Message::Request(req) => on_request( | 351 | Message::Request(req) => on_request( |