diff --git a/crates/workspace/src/items.rs b/crates/workspace/src/items.rs index 61e2d65986..9a14379c7a 100644 --- a/crates/workspace/src/items.rs +++ b/crates/workspace/src/items.rs @@ -300,7 +300,7 @@ impl View for DiagnosticMessage { ) .with_child( Label::new( - diagnostic.message.replace('\n', " "), + diagnostic.message.lines().next().unwrap().to_string(), theme.diagnostic_message.clone(), ) .boxed(),