editor: Fix code action not visible until mouse move or buffer interaction (#32804)

Closes #32796

Regressed since https://github.com/zed-industries/zed/pull/32408. Fixed
in same way as other related PRs
https://github.com/zed-industries/zed/pull/32683,
https://github.com/zed-industries/zed/pull/32692,
https://github.com/zed-industries/zed/pull/32795.

Release Notes:

- Fixed issue where code actions are not visible until the mouse is
moved when the `cursor_blink` setting is `false`.
This commit is contained in:
Smit Barmase 2025-06-16 22:25:25 +05:30 committed by GitHub
parent 29cdef1ec8
commit c7de817bf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5897,13 +5897,13 @@ impl Editor {
scroll_handle: UniformListScrollHandle::default(),
deployed_from,
}));
cx.notify();
if spawn_straight_away {
if let Some(task) = editor.confirm_code_action(
&ConfirmCodeAction { item_ix: Some(0) },
window,
cx,
) {
cx.notify();
return task;
}
}