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

ParameterTypeDescription
contextEditorSuggestContext

Returns:

T[] | ``Promise<T[]>