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:
co-authored by
Max Brunsfeld
parent
595dbd44ae
commit
44e0a00734
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user