EditorSuggest โบ getSuggestions
EditorSuggest.getSuggestions() method
Generate suggestion items based on this context. Can be async, but preferably sync. When generating async suggestions, you should pass the context along.
Signature:
abstract getSuggestions(context: EditorSuggestContext): T[] | Promise<T[]>;Parameters
| Parameter | Type | Description |
|---|---|---|
context | EditorSuggestContext |
Returns:
T[] | ``Promise<T[]>