Class SingleWordSuggestionGenerator
ISuggestionGenerator which suggests from a collection of words those that match the AutocompleteContext. You can update AllSuggestions at any time to change candidates considered for autocomplete.
public class SingleWordSuggestionGenerator : ISuggestionGenerator
- Inheritance
-
SingleWordSuggestionGenerator
- Implements
- Inherited Members
Properties
- AllSuggestions
The full set of all strings that can be suggested.
Methods
- GenerateSuggestions(AutocompleteContext)
Generates autocomplete Suggestion based on a given
context
- IdxToWord(List<Rune>, int, out int, int)
Given a
line
of characters, returns the word which ends atidx
or null. Also returns null if theidx
is positioned in the middle of a word.Use this method to determine whether autocomplete should be shown when the cursor is at a given point in a line and to get the word from which suggestions should be generated. Use the
columnOffset
to indicate if search the word at left (negative), at right (positive) or at the current column (zero) which is the default.
- IsWordChar(Rune)
Return true if the given symbol should be considered part of a word and can be contained in matches. Base behavior is to use IsLetterOrDigit(char)