src/vs/editor/standalone/browser/standaloneLanguages.ts/getEncodedLanguageId
export function getEncodedLanguageId(languageId: string): number {
	const languageService = StandaloneServices.get(ILanguageService);
	return languageService.languageIdCodec.encodeLanguageId(languageId);
}