pub struct CombinedAutocompleteProvider { /* private fields */ }Expand description
Combined provider that handles slash commands and file path completion.
Implementations§
Source§impl CombinedAutocompleteProvider
impl CombinedAutocompleteProvider
pub fn new(slash_commands: Vec<SlashCommand>, base_path: String) -> Self
Trait Implementations§
Source§impl AutocompleteProvider for CombinedAutocompleteProvider
impl AutocompleteProvider for CombinedAutocompleteProvider
Source§fn trigger_characters(&self) -> &[char]
fn trigger_characters(&self) -> &[char]
Characters that should naturally trigger this provider at token boundaries.
Source§fn get_suggestions(
&self,
lines: &[String],
cursor_line: usize,
cursor_col: usize,
force: bool,
) -> Option<AutocompleteSuggestions>
fn get_suggestions( &self, lines: &[String], cursor_line: usize, cursor_col: usize, force: bool, ) -> Option<AutocompleteSuggestions>
Get suggestions for the current text/cursor position.
Returns None if no suggestions available.
Auto Trait Implementations§
impl !RefUnwindSafe for CombinedAutocompleteProvider
impl !UnwindSafe for CombinedAutocompleteProvider
impl Freeze for CombinedAutocompleteProvider
impl Send for CombinedAutocompleteProvider
impl Sync for CombinedAutocompleteProvider
impl Unpin for CombinedAutocompleteProvider
impl UnsafeUnpin for CombinedAutocompleteProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more