Skip to main content

Module suggestions

Module suggestions 

Source
Expand description

Suggestion helpers shared by command arguments

Structsยง

FixedSuggestionProvider ๐Ÿ”’
An implementation of SuggestionProvider that suggests a constant array of suggestions.

Constantsยง

MATCH_SPLITTER ๐Ÿ”’
Characters separating the segments matches_substring searches

Functionsยง

identifier_matches ๐Ÿ”’
Matches pattern against a whole identifier or, when it carries no namespace, against its namespace and its path separately.
matches_substring ๐Ÿ”’
Returns whether input starts with pattern at the beginning of the input or of any segment separated by a MATCH_SPLITTER character.
matches_substring_ignore_case ๐Ÿ”’
matches_substring on lowercase inputs, as vanillaโ€™s SharedSuggestionProvider.suggest does before filtering.
suggest_list ๐Ÿ”’
Suggests every value whose name matches the remaining input, keeping the valuesโ€™ own casing.
suggest_resources ๐Ÿ”’
Suggests the identifiers matching the remaining input.