Skip to main content

accept_action_to_outcome

Function accept_action_to_outcome 

Source
pub fn accept_action_to_outcome(
    action: AcceptAction,
) -> Option<PickerAcceptOutcome>
Expand description

Slice 3c.unify.picker-registry-cutover (7d.0). Translate a unified lattice_completion::AcceptAction into the host-internal lattice_picker::PickerAcceptOutcome for dispatch. The two enums encode the same concept; this fn is the bridge until 7e+ retires PickerAcceptOutcome entirely.

Returns None for variants that don’t have a PickerAcceptOutcome counterpart today — stateful LSP actions (Indexed*, ShowMessageAction), the cmdline-only InsertText, and the plugin escape Custom. Callers fall back to the legacy trait-driven path in those cases (LSP sources don’t set accept_action yet — slice 9+ migrates).