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:
parent
d0f7e5f075
commit
1875a0e349
3 changed files with 25 additions and 6 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue