Polish rendering of inline errors

- Don't soft-wrap
- Render multiple lines

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2022-01-06 16:17:53 +01:00
co-authored by Nathan Sobo
parent d0f7e5f075
commit 1875a0e349
3 changed files with 25 additions and 6 deletions
+1 -1
View File
@@ -285,7 +285,7 @@ impl ProjectDiagnosticsEditor {
diagnostic_blocks.push(DiagnosticBlock::Header(primary.clone()));
blocks_to_add.push(BlockProperties {
position: header_position,
height: 2,
height: primary.message.matches('\n').count() as u8 + 2,
render: diagnostic_header_renderer(
buffer.clone(),
primary.clone(),