Skip to main content

register_mode_action_handlers

Function register_mode_action_handlers 

Source
pub fn register_mode_action_handlers(
    action_handlers: &ActionHandlerRegistryHandle,
    mode_registry: &ModeRegistry,
    command_registry: &CommandRegistry,
) -> Vec<ActionHandlerRegistration>
Expand description

Walk every registered mode’s action_handlers(), resolve each contribution’s action_name → CommandId, register the handler globally, and return the registration tokens (held by the caller for the app’s lifetime).

An unknown action_name (the mode declared a handler for a command the registry doesn’t know — a wiring bug) is skipped with a debug!, non-fatal: the chord falls through to the default dispatch path.