mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ impl View for DiagnosticMessage {
|
||||||
)
|
)
|
||||||
.with_child(
|
.with_child(
|
||||||
Label::new(
|
Label::new(
|
||||||
diagnostic.message.replace('\n', " "),
|
diagnostic.message.lines().next().unwrap().to_string(),
|
||||||
theme.diagnostic_message.clone(),
|
theme.diagnostic_message.clone(),
|
||||||
)
|
)
|
||||||
.boxed(),
|
.boxed(),
|
||||||
|
|
Loading…
Reference in a new issue