mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 18:41:56 +03:00
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:
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(),
|
||||
|
Loading…
Reference in New Issue
Block a user