Forbid extra inlay updates

This commit is contained in:
Kirill Bulatov
2023-06-29 22:25:49 +03:00
parent 97e5d40579
commit 31f0f9f7b1
5 changed files with 141 additions and 93 deletions
+2
View File
@@ -2635,6 +2635,7 @@ impl Editor {
Some(InlayHintQuery {
buffer_id,
buffer_version: buffer.read(cx).version(),
cache_version: self.inlay_hint_cache.version(),
excerpt_id,
})
} else {
@@ -2660,6 +2661,7 @@ impl Editor {
InlayHintQuery {
buffer_id: buffer.remote_id(),
buffer_version: buffer.version(),
cache_version: self.inlay_hint_cache.version(),
excerpt_id,
}
})