Revert "Add a way to toggle inlay hints with modifiers" (#25764)
This PR caused inlay hints to show on every modifiers press Reverts zed-industries/zed#25752 Release Notes: - N/A
This commit is contained in:
parent
6856e869fc
commit
c5632f8c31
10 changed files with 9 additions and 101 deletions
|
@ -711,7 +711,6 @@ pub struct Editor {
|
|||
edit_prediction_indent_conflict: bool,
|
||||
edit_prediction_requires_modifier_in_indent_conflict: bool,
|
||||
inlay_hint_cache: InlayHintCache,
|
||||
inlay_hint_modifiers_toggled: bool,
|
||||
next_inlay_id: usize,
|
||||
_subscriptions: Vec<Subscription>,
|
||||
pixel_position_of_newest_cursor: Option<gpui::Point<Pixels>>,
|
||||
|
@ -1420,7 +1419,6 @@ impl Editor {
|
|||
released_too_fast: false,
|
||||
},
|
||||
inline_diagnostics_enabled: mode == EditorMode::Full,
|
||||
inlay_hint_modifiers_toggled: false,
|
||||
inlay_hint_cache: InlayHintCache::new(inlay_hint_settings),
|
||||
|
||||
gutter_hovered: false,
|
||||
|
@ -3693,9 +3691,6 @@ impl Editor {
|
|||
);
|
||||
let (invalidate_cache, required_languages) = match reason {
|
||||
InlayHintRefreshReason::Toggle(enabled) => {
|
||||
if self.inlay_hint_cache.enabled == enabled {
|
||||
return;
|
||||
}
|
||||
self.inlay_hint_cache.enabled = enabled;
|
||||
if enabled {
|
||||
(InvalidationStrategy::RefreshRequested, None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue