Fix cache incremental updates
This commit is contained in:
parent
7ac1885449
commit
70a45fc800
2 changed files with 149 additions and 263 deletions
|
@ -2668,9 +2668,11 @@ impl Editor {
|
|||
to_insert,
|
||||
} = editor
|
||||
.update(&mut cx, |editor, cx| {
|
||||
editor.inlay_hint_cache.append_hints(
|
||||
editor.inlay_hint_cache.update_hints(
|
||||
multi_buffer_handle,
|
||||
std::iter::once(updated_range_query),
|
||||
vec![updated_range_query],
|
||||
currently_shown_inlay_hints,
|
||||
false,
|
||||
cx,
|
||||
)
|
||||
})?
|
||||
|
@ -2697,10 +2699,11 @@ impl Editor {
|
|||
to_insert,
|
||||
} = editor
|
||||
.update(&mut cx, |editor, cx| {
|
||||
editor.inlay_hint_cache.replace_hints(
|
||||
editor.inlay_hint_cache.update_hints(
|
||||
multi_buffer_handle,
|
||||
replacement_queries,
|
||||
currently_shown_inlay_hints,
|
||||
true,
|
||||
cx,
|
||||
)
|
||||
})?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue