From ce118da149a0db1815f188c9914001608a5ac09e Mon Sep 17 00:00:00 2001 From: Ville Penttinen Date: Tue, 5 Mar 2019 22:25:24 +0200 Subject: Rename feedback to show_message --- crates/ra_lsp_server/src/main_loop.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_lsp_server/src') 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( Err(e) => { log::error!("loading workspace failed: {}", e); - feedback( + show_message( req::MessageType::Error, format!("rust-analyzer failed to load workspace: {}", e), msg_sender, @@ -247,7 +247,7 @@ fn main_loop_inner( && pending_libraries.is_empty() && in_flight_libraries == 0 { - feedback(req::MessageType::Info, "workspace loaded", msg_sender); + show_message(req::MessageType::Info, "workspace loaded", msg_sender); // Only send the notification first time send_workspace_notification = false; } @@ -505,7 +505,7 @@ fn update_file_notifications_on_threadpool( }); } -fn feedback>(typ: req::MessageType, msg: M, sender: &Sender) { +fn show_message>(typ: req::MessageType, msg: M, sender: &Sender) { let not = RawNotification::new::(&req::ShowMessageParams { typ, message: msg.into(), -- cgit v1.2.3