ZIm/crates/assistant_context_editor/src
Kirill Bulatov 6f7f0f30e2
Fix hover tooltips appearing after related element is pressed (#24540)
Closes https://github.com/zed-industries/zed/issues/23894

Reworks all trigger declarations from
`.trigger(element.tooltip(tooltip))` into
`.trigger_with_tooltip(element, tooltip)` , with new API disallowing
simultaneous trigger and tooltip display.

All existing `.trigger(` calls were replaced, except 2 not applicable
(in dock.rs and pane.rs), 15 left as ones without tooltips, and 2
unchanged places in `inline_completion_button.rs`, where


0f7bb2e9fd/crates/inline_completion_button/src/inline_completion_button.rs (L311-L319)

`with_animation` does not allow us to simply use the same approach.

Release Notes:

- Fixed hover tooltips appearing after related element is pressed

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
2025-02-10 00:16:12 +00:00
..
context assistant: Unship tool use (#23969) 2025-01-30 19:46:15 +00:00
assistant_context_editor.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
context.rs assistant: Unship tool use (#23969) 2025-01-30 19:46:15 +00:00
context_editor.rs Fix hover tooltips appearing after related element is pressed (#24540) 2025-02-10 00:16:12 +00:00
context_history.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
context_store.rs Rename model based variable names to entity (#24198) 2025-02-04 10:24:35 -08:00
patch.rs Fix missed renames in #22632 (#23688) 2025-01-26 23:37:34 +00:00
slash_command.rs Solve 50+ cargo doc warnings (#24071) 2025-02-01 06:19:29 +00:00
slash_command_picker.rs Fix hover tooltips appearing after related element is pressed (#24540) 2025-02-10 00:16:12 +00:00