109
110
public getLanguageConfiguration(languageId: string): ResolvedLanguageConfiguration {
112
>
if (!result) {
113
>
result = computeConfig(languageId, this._registry, this.configurationService, this.languageService);
114
>
this.configurations.set(languageId, result);
115
>
}
116
>
return result;
117
>
}
118
}
119
121
>
languageId: string,
122
>
registry: LanguageConfigurationRegistry,
123
>
configurationService: IConfigurationService,
124
>
languageService: ILanguageService,
125
>
): ResolvedLanguageConfiguration {
126
>
let languageConfig = registry.getLanguageConfiguration(languageId);
127
>
128
>
if (!languageConfig) {
129
if (!languageService.isRegisteredLanguageId(languageId)) {
130
// this happens for the null language, which can be returned by monarch.