diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 763da1c43..d316726ae 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -1412,9 +1412,11 @@ fn lsp_workspace_command( let picker = ui::Picker::new( commands, (), - move |cx, LsIdCommand(ls_id, command), _action| { - let Some(c) = command else { return }; - execute_lsp_command(cx.editor, *ls_id, c.clone()); + move |cx, ls_id_command: Option<&LsIdCommand>, _action| { + let Some(LsIdCommand(ls_id, c)) = ls_id_command else { + return; + }; + execute_lsp_command(cx.editor, *ls_id, c.clone()); }, ); compositor.push(Box::new(overlaid(picker)))