Add inlay hint randomization in the text

Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
Kirill Bulatov 2023-06-09 14:52:44 +03:00
parent dbd4b33568
commit f940104b6f
2 changed files with 73 additions and 37 deletions

View file

@ -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(),
});
}
}