AsyncSuggestionProvider
Namespace Mc.Scripting.Commands · Kind delegate
public delegate Task<IReadOnlyList<string>> AsyncSuggestionProvider(SuggestionContext context, string typed)An asynchronous suggestion provider (the list is produced off the tick thread, e.g. from a database).
Parameters
| Name | Type | Description |
|---|---|---|
context |
SuggestionContext |
A copy of the request (the asker, the line typed so far): safe to read at any time, also after an await on another thread. The native command context is not available here: it does not outlive the call that started the provider. |
typed |
string |
The text typed so far for this argument. |
Returns Task<IReadOnlyList<string>>: The suggestions.