rebase on main

pull/11081/head
Schuyler Mortimer 5 months ago
parent 877c332439
commit efb5856e30

@ -1412,9 +1412,11 @@ fn lsp_workspace_command(
let picker = ui::Picker::new( let picker = ui::Picker::new(
commands, commands,
(), (),
move |cx, LsIdCommand(ls_id, command), _action| { move |cx, ls_id_command: Option<&LsIdCommand>, _action| {
let Some(c) = command else { return }; let Some(LsIdCommand(ls_id, c)) = ls_id_command else {
execute_lsp_command(cx.editor, *ls_id, c.clone()); return;
};
execute_lsp_command(cx.editor, *ls_id, c.clone());
}, },
); );
compositor.push(Box::new(overlaid(picker))) compositor.push(Box::new(overlaid(picker)))

Loading…
Cancel
Save