aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src
diff options
context:
space:
mode:
authorVille Penttinen <[email protected]>2019-03-05 20:25:24 +0000
committerVille Penttinen <[email protected]>2019-03-05 20:25:24 +0000
commitce118da149a0db1815f188c9914001608a5ac09e (patch)
treedaab54d43f39cd87f0e92bff56410b2dbb146395 /crates/ra_lsp_server/src
parent80347b8187e8cc9f062335bc62643c009e7400d8 (diff)
Rename feedback to show_message
Diffstat (limited to 'crates/ra_lsp_server/src')
-rw-r--r--crates/ra_lsp_server/src/main_loop.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs
index 145f7bf65..fb2305b26 100644
--- a/crates/ra_lsp_server/src/main_loop.rs
+++ b/crates/ra_lsp_server/src/main_loop.rs
@@ -63,7 +63,7 @@ pub fn main_loop(
63 Err(e) => { 63 Err(e) => {
64 log::error!("loading workspace failed: {}", e); 64 log::error!("loading workspace failed: {}", e);
65 65
66 feedback( 66 show_message(
67 req::MessageType::Error, 67 req::MessageType::Error,
68 format!("rust-analyzer failed to load workspace: {}", e), 68 format!("rust-analyzer failed to load workspace: {}", e),
69 msg_sender, 69 msg_sender,
@@ -247,7 +247,7 @@ fn main_loop_inner(
247 && pending_libraries.is_empty() 247 && pending_libraries.is_empty()
248 && in_flight_libraries == 0 248 && in_flight_libraries == 0
249 { 249 {
250 feedback(req::MessageType::Info, "workspace loaded", msg_sender); 250 show_message(req::MessageType::Info, "workspace loaded", msg_sender);
251 // Only send the notification first time 251 // Only send the notification first time
252 send_workspace_notification = false; 252 send_workspace_notification = false;
253 } 253 }
@@ -505,7 +505,7 @@ fn update_file_notifications_on_threadpool(
505 }); 505 });
506} 506}
507 507
508fn feedback<M: Into<String>>(typ: req::MessageType, msg: M, sender: &Sender<RawMessage>) { 508fn show_message<M: Into<String>>(typ: req::MessageType, msg: M, sender: &Sender<RawMessage>) {
509 let not = RawNotification::new::<req::ShowMessage>(&req::ShowMessageParams { 509 let not = RawNotification::new::<req::ShowMessage>(&req::ShowMessageParams {
510 typ, 510 typ,
511 message: msg.into(), 511 message: msg.into(),