Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

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

Smit Barmasec7de817bf91e
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 405d47f233f..34aef9046d7 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -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;
}
}