Only show the first line of diagnostic messages in the status bar

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo 2021-11-03 16:52:32 -06:00
parent 595dbd44ae
commit 44e0a00734

View File

@ -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(),