@@ -3503,7 +3503,7 @@ pub fn code_action(cx: &mut Context) {
3506− let picker = ui::Menu::new(actions, move |editor, code_action, event| {
3506+ let mut picker = ui::Menu::new(actions, move |editor, code_action, event| {
3507 if event != PromptEvent::Validate {
3507 if event != PromptEvent::Validate {
@@ -3531,6 +3531,8 @@ pub fn code_action(cx: &mut Context) {
3534+ picker.move_down(); // pre-select the first item
3534 let popup = Popup::new("code-action", picker).margin(helix_view::graphics::Margin {
3536 let popup = Popup::new("code-action", picker).margin(helix_view::graphics::Margin {
3535 vertical: 1,
3537 vertical: 1,
3536 horizontal: 1,
3538 horizontal: 1,