mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
zxzz
This commit is contained in:
parent
749a439016
commit
b44db4fba9
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue