src/vs/editor/common/services/languagesAssociations.ts/getLanguageIds
export function getLanguageIds(resource: URI | null, firstLine?: string): string[] {
	return getAssociations(resource, firstLine).map(item => item.id);
}