src/vs/workbench/contrib/preferences/browser/settingsTree.ts/createArraySuggester
function createArraySuggester(element: SettingsTreeSettingElement): IObjectKeySuggester {
	return keys => {
		const enumOptions: IObjectEnumOption[] = [];

		if (element.setting.enum) {
			element.setting.enum.forEach((staticKey, i) => {
				const description = element.setting.enumDescriptions?.[i];
				enumOptions.push({ value: staticKey, description });
			});
		}

		return enumOptions.length > 0
			? { type: 'enum', data: enumOptions[0].value, options: enumOptions }
			: undefined;
	};
}