Add inlay hint randomization in the text
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
parent
dbd4b33568
commit
f940104b6f
2 changed files with 73 additions and 37 deletions
|
@ -307,13 +307,10 @@ impl DisplayMap {
|
|||
for hint in hints {
|
||||
let hint_anchor =
|
||||
buffer_snapshot.anchor_in_excerpt(location.excerpt_id, hint.position);
|
||||
new_inlays.push((
|
||||
location,
|
||||
InlayProperties {
|
||||
position: hint_anchor,
|
||||
text: hint.text().trim_end().into(),
|
||||
},
|
||||
))
|
||||
new_inlays.push(InlayProperties {
|
||||
position: hint_anchor,
|
||||
text: hint.text().trim_end().into(),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue