Ensure inlay hint toggling with modifiers happens fast (#25852)

Follow-up of https://github.com/zed-industries/zed/pull/25766 
Fixes the bugs found:

* modifier toggle not happening instantly due to `edit_debounce_ms`
considered
* hint update race that ignored the cache clear

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov
2025-03-01 08:15:57 +00:00
committed by GitHub
parent 2d61a51ded
commit 42571e405f
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -581,6 +581,7 @@ impl InlayHintCache {
self.version += 1;
}
self.update_tasks.clear();
self.refresh_task = Task::ready(());
self.hints.clear();
}