src/vs/workbench/api/common/extHostConfiguration.ts/isLanguage
function isLanguage(thing: any): thing is { languageId: string } {
	return thing
		&& !thing.uri
		&& (thing.languageId && typeof thing.languageId === 'string');
}