remove (auto) because it shows up without the language detection setting being on and we planned on removing it anyway next iteration

This commit is contained in:
Tyler Leonhardt 2021-07-28 14:23:03 -07:00
parent 5b3100336f
commit 194ec9c858
No known key found for this signature in database
GPG key ID: 1BC2B6244363E77E

View file

@ -55,7 +55,6 @@ import { ThemeColor, themeColorFromId } from 'vs/platform/theme/common/themeServ
import { ITelemetryData, ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import { SideBySideEditorInput } from 'vs/workbench/common/editor/sideBySideEditorInput';
import { ILanguageStatus, ILanguageStatusService } from 'vs/editor/common/services/languageStatusService';
import { IUntitledTextEditorService } from 'vs/workbench/services/untitled/common/untitledTextEditorService';
import { ILanguageDetectionService } from 'vs/workbench/services/languageDetection/common/languageDetection';
class SideBySideEditorEncodingSupport implements IEncodingSupport {
@ -340,8 +339,7 @@ export class EditorStatus extends Disposable implements IWorkbenchContribution {
@INotificationService private readonly notificationService: INotificationService,
@IAccessibilityService private readonly accessibilityService: IAccessibilityService,
@IStatusbarService private readonly statusbarService: IStatusbarService,
@IInstantiationService private readonly instantiationService: IInstantiationService,
@IUntitledTextEditorService private readonly untitledEditorService: IUntitledTextEditorService,
@IInstantiationService private readonly instantiationService: IInstantiationService
) {
super();
@ -783,10 +781,6 @@ export class EditorStatus extends Disposable implements IWorkbenchContribution {
if (textModel) {
const modeId = textModel.getLanguageIdentifier().language;
info.mode = withNullAsUndefined(this.modeService.getLanguageName(modeId));
const untitledTextEditorModel = this.untitledEditorService.get(textModel.uri);
if (untitledTextEditorModel) {
info.mode += untitledTextEditorModel.hasModeSetExplicitly ? '' : localize('languageModeAuto', " (Auto)");
}
}
}