KeybindingProvider

Trait KeybindingProvider 

Source
pub trait KeybindingProvider:
    Environment
    + Send
    + Sync {
    // Required method
    fn GetResolvedKeybinding<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

An abstract service contract for an environment component that can resolve the final, effective keymap for the application by merging default and user-defined keybindings.

Required Methods§

Source

fn GetResolvedKeybinding<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resolves and retrieves the complete list of active keybinding rules.

This method should read default keybindings contributed by extensions, merge them with user-defined keybindings from keybindings.json, and return the final list.

§Returns

A Result containing a Value that is a JSON array of KeybindingRuleDTOs.

Implementors§