Calculate anchors for new hints

This commit is contained in:
Kirill Bulatov 2023-06-09 09:53:10 +03:00
parent 5fadbf77d4
commit daa2ebb57f
4 changed files with 25 additions and 29 deletions

View file

@ -2698,12 +2698,11 @@ impl Editor {
}
}
// TODO kb wrong, need a splice here instead
if !new_hints.is_empty() {
editor
.update(&mut cx, |editor, cx| {
editor.display_map.update(cx, |display_map, cx| {
display_map.set_inlay_hints(&new_hints, cx);
display_map.splice_inlay_hints(&new_hints, cx);
});
})
.log_err()