Activate correct item when clicking on a code action with the mouse

This commit is contained in:
Julia 2023-09-25 13:31:00 -04:00
parent ff5d0f2aeb
commit 80eaabd360

View file

@ -1206,7 +1206,9 @@ impl CodeActionsMenu {
workspace.update(cx, |workspace, cx| { workspace.update(cx, |workspace, cx| {
if let Some(task) = Editor::confirm_code_action( if let Some(task) = Editor::confirm_code_action(
workspace, workspace,
&Default::default(), &ConfirmCodeAction {
item_ix: Some(item_ix),
},
cx, cx,
) { ) {
task.detach_and_log_err(cx); task.detach_and_log_err(cx);