Skip to content

Commit

Permalink
zxzz
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneToIgnore committed Dec 21, 2024
1 parent a8d7f20 commit 515e31a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion crates/editor/src/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 515e31a

Please sign in to comment.