src/vs/editor/standalone/browser/standaloneLanguages.ts/getEncodedLanguageId
export function getEncodedLanguageId(languageId: string): number {
	let lid = StaticServices.modeService.get().getLanguageIdentifier(languageId);
	return lid ? lid.id : 0;
}