mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-25 15:35:43 +01:00
chore: fix a couple of typos (#178400)
This commit is contained in:
committed by
GitHub
parent
957d3e0a45
commit
fbfb9ad899
@@ -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);
|
||||
}
|
||||
|
||||
+3
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user