Calculate anchors for new hints
This commit is contained in:
parent
5fadbf77d4
commit
daa2ebb57f
4 changed files with 25 additions and 29 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue