private getSuggestionsForKeyToken()

in client/src/lang/typeahead.ts [80:97]


  private getSuggestionsForKeyToken(keyToken: Token): TypeaheadSuggestion[] {
    const suggestions = this.suggestFieldKey(keyToken.literal ?? "");

    if (!suggestions) {
      return [];
    }

    return [
      {
        from: keyToken.start,
        to: keyToken.end,
        position: "chipKey",
        suggestions,
        type: "TEXT",
        suffix: ":",
      },
    ];
  }