From c9d1cc495c2299655ee8e212abc3e2f3eafa5b1f Mon Sep 17 00:00:00 2001 From: Julia Date: Mon, 25 Sep 2023 13:31:00 -0400 Subject: [PATCH] Activate correct item when clicking on a code action with the mouse --- crates/editor/src/editor.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 0c9d8de969..6070590d4f 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -1206,7 +1206,9 @@ impl CodeActionsMenu { workspace.update(cx, |workspace, cx| { if let Some(task) = Editor::confirm_code_action( workspace, - &Default::default(), + &ConfirmCodeAction { + item_ix: Some(item_ix), + }, cx, ) { task.detach_and_log_err(cx);