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:
co-authored by
Nathan Sobo
parent
d0f7e5f075
commit
1875a0e349
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user