<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`EditorSuggest`](EditorSuggest) › [`getSuggestions`](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. 0.12.17 **Signature:** ```typescript abstract getSuggestions(context: EditorSuggestContext): T[] | Promise<T[]>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>context</code> | [`EditorSuggestContext`](EditorSuggestContext) | | **Returns:** `T[] | ``Promise<T[]>`