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