Truncate multi-line debug value hints (#34305)
Release Notes: - Multi-line debug inline values are now truncated. Co-authored-by: Anthony Eid <hello@anthonyeid.me>
This commit is contained in:
parent
90bf602ceb
commit
0bd65829f7
3 changed files with 40 additions and 3 deletions
|
@ -19655,8 +19655,9 @@ impl Editor {
|
|||
Anchor::in_buffer(excerpt_id, buffer_id, hint.position),
|
||||
hint.text(),
|
||||
);
|
||||
|
||||
new_inlays.push(inlay);
|
||||
if !inlay.text.chars().contains(&'\n') {
|
||||
new_inlays.push(inlay);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue