From 76f34a15e61fc69ccafe1ec4804712dcd3069de5 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Fri, 1 May 2020 19:13:52 -0400 Subject: Improve formatting of analyzer status text --- crates/rust-analyzer/src/main_loop/handlers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rust-analyzer/src/main_loop/handlers.rs b/crates/rust-analyzer/src/main_loop/handlers.rs index 0f623949e..574e070fc 100644 --- a/crates/rust-analyzer/src/main_loop/handlers.rs +++ b/crates/rust-analyzer/src/main_loop/handlers.rs @@ -46,11 +46,11 @@ use crate::{ pub fn handle_analyzer_status(world: WorldSnapshot, _: ()) -> Result { let _p = profile("handle_analyzer_status"); let mut buf = world.status(); - format_to!(buf, "\n\nrequests:"); + format_to!(buf, "\n\nrequests:\n"); let requests = world.latest_requests.read(); for (is_last, r) in requests.iter() { let mark = if is_last { "*" } else { " " }; - format_to!(buf, "{}{:4} {:<36}{}ms", mark, r.id, r.method, r.duration.as_millis()); + format_to!(buf, "{}{:4} {:<36}{}ms\n", mark, r.id, r.method, r.duration.as_millis()); } Ok(buf) } -- cgit v1.2.3