Split excerpts into mutliple ranges for inlay hint queries
This commit is contained in:
parent
2c7900e11b
commit
4d4544f680
3 changed files with 352 additions and 215 deletions
|
@ -2643,8 +2643,10 @@ impl Editor {
|
|||
(excerpt_id, (buffer, excerpt_visible_range))
|
||||
})
|
||||
.collect::<HashMap<_, _>>();
|
||||
self.inlay_hint_cache
|
||||
.spawn_hints_update(excerpts_to_query, invalidate_cache, cx)
|
||||
if !excerpts_to_query.is_empty() {
|
||||
self.inlay_hint_cache
|
||||
.refresh_inlay_hints(excerpts_to_query, invalidate_cache, cx)
|
||||
}
|
||||
}
|
||||
|
||||
fn excerpt_visible_offsets(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue