Compare commits

...

1 Commits

Author SHA1 Message Date
Mikayla Maki
650ac4bd9f disable inlay hints on modifiers pressed 2025-02-27 09:51:54 -08:00

View File

@@ -516,19 +516,19 @@ impl EditorElement {
if let Some(inlay_modifiers) =
inlay_hint_settings.toggle_on_modifiers_press.as_ref()
{
if inlay_modifiers == &event.modifiers {
editor.refresh_inlay_hints(
InlayHintRefreshReason::Toggle(!editor.inlay_hints_enabled()),
cx,
);
editor.inlay_hint_modifiers_toggled = true;
} else if editor.inlay_hint_modifiers_toggled {
editor.refresh_inlay_hints(
InlayHintRefreshReason::Toggle(!editor.inlay_hints_enabled()),
cx,
);
editor.inlay_hint_modifiers_toggled = false;
}
// if inlay_modifiers == &event.modifiers {
// editor.refresh_inlay_hints(
// InlayHintRefreshReason::Toggle(!editor.inlay_hints_enabled()),
// cx,
// );
// editor.inlay_hint_modifiers_toggled = true;
// } else if editor.inlay_hint_modifiers_toggled {
// editor.refresh_inlay_hints(
// InlayHintRefreshReason::Toggle(!editor.inlay_hints_enabled()),
// cx,
// );
// editor.inlay_hint_modifiers_toggled = false;
// }
}
if editor.hover_state.focused(window, cx) {