chore: fix a couple of typos (#178400)

This commit is contained in:
Ulugbek Abdullaev
2023-03-27 12:00:39 +02:00
committed by GitHub
parent 957d3e0a45
commit fbfb9ad899
2 changed files with 6 additions and 6 deletions
@@ -477,12 +477,12 @@ export class ExtensionsListView extends ViewPane {
return this.sortExtensions(themesExtensions, options);
}
const isLangaugeBasicExtension = (e: IExtension): boolean => {
const isLanguageBasicExtension = (e: IExtension): boolean => {
return FORCE_FEATURE_EXTENSIONS.indexOf(e.identifier.id) === -1
&& (Array.isArray(e.local?.manifest?.contributes?.grammars) && e.local!.manifest!.contributes!.grammars.length > 0);
};
if (showBasicsOnly) {
const basics = result.filter(isLangaugeBasicExtension);
const basics = result.filter(isLanguageBasicExtension);
return this.sortExtensions(basics, options);
}
if (showFeaturesOnly) {
@@ -490,7 +490,7 @@ export class ExtensionsListView extends ViewPane {
return e.local
&& e.local.manifest
&& !isThemeExtension(e)
&& !isLangaugeBasicExtension(e);
&& !isLanguageBasicExtension(e);
});
return this.sortExtensions(others, options);
}
@@ -332,7 +332,7 @@ export class LanguageDetectionWorkerClient extends EditorWorkerClient {
await this._withSyncedResources([resource]);
const modelId = await (await this._getProxy()).detectLanguage(resource.toString(), langBiases, preferHistory, supportedLangs);
const langaugeId = this.getLanguageId(modelId);
const languageId = this.getLanguageId(modelId);
const LanguageDetectionStatsId = 'automaticlanguagedetection.perf';
@@ -350,10 +350,10 @@ export class LanguageDetectionWorkerClient extends EditorWorkerClient {
this._telemetryService.publicLog2<ILanguageDetectionPerf, LanguageDetectionPerfClassification>(LanguageDetectionStatsId, {
timeSpent: Date.now() - startTime,
detection: langaugeId || 'unknown',
detection: languageId || 'unknown',
});
return langaugeId;
return languageId;
}
}