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

Kirill Bulatov created

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

Change summary

crates/editor/src/editor.rs           | 1 +
crates/editor/src/inlay_hint_cache.rs | 1 +
2 files changed, 2 insertions(+)

Detailed changes

crates/editor/src/editor.rs 🔗

@@ -3691,6 +3691,7 @@ impl Editor {
             InlayHintRefreshReason::SettingsChange(_)
                 | InlayHintRefreshReason::Toggle(_)
                 | InlayHintRefreshReason::ExcerptsRemoved(_)
+                | InlayHintRefreshReason::ModifiersChanged(_)
         );
         let (invalidate_cache, required_languages) = match reason {
             InlayHintRefreshReason::ModifiersChanged(enabled) => {