Class CompletionProvider
Provides command and keyword completion candidates for the interactive input.
public sealed class CompletionProvider
- Inheritance
-
CompletionProvider
- Inherited Members
Methods
GetCompletions(string)
Returns completions matching the given prefix, ordered alphabetically. Excludes exact matches (no ghost text for a fully typed command).
public IReadOnlyList<CompletionItem> GetCompletions(string prefix)
Parameters
prefixstring
Returns
Register(string, string?)
Register a completion candidate.
public void Register(string text, string? description = null)