From b44db4fba933e7720be75bb68a4c939c956a78d3 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sat, 30 Nov 2024 15:52:33 +0200 Subject: [PATCH] zxzz --- crates/editor/src/element.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index 1f8925e48a..39512e3009 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -13,7 +13,7 @@ use crate::{ self, hover_at, HOVER_POPOVER_GAP, MIN_POPOVER_CHARACTER_WIDTH, MIN_POPOVER_LINE_HEIGHT, }, hunk_diff::{diff_hunk_to_display, DisplayDiffHunk}, - hunk_status, + hunk_status, inlay_hint_settings, items::BufferSearchHighlights, mouse_context_menu::{self, MenuPosition, MouseContextMenu}, scroll::{axis_pair, scroll_amount::ScrollAmount, AxisPair}, @@ -475,6 +475,14 @@ impl EditorElement { return; } editor.update(cx, |editor, cx| { + let inlay_hint_settings = inlay_hint_settings( + editor.selections.newest_anchor().head(), + &editor.buffer.read(cx).snapshot(cx), + cx, + ); + if inlay_hint_settings.toggle_on_modifiers_press == Some(event.modifiers) { + // TODO kb decide how to propagate this into the inlay_hint_cache + } if editor.hover_state.focused(cx) { return; }