mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
Activate correct item when clicking on a code action with the mouse
This commit is contained in:
parent
ff5d0f2aeb
commit
80eaabd360
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue