remove (auto) because it shows up without the language detection setting being...

remove (auto) because it shows up without the language detection setting being on and we planned on removing it anyway next iteration
上级 5b310033
...@@ -55,7 +55,6 @@ import { ThemeColor, themeColorFromId } from 'vs/platform/theme/common/themeServ ...@@ -55,7 +55,6 @@ import { ThemeColor, themeColorFromId } from 'vs/platform/theme/common/themeServ
import { ITelemetryData, ITelemetryService } from 'vs/platform/telemetry/common/telemetry'; import { ITelemetryData, ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import { SideBySideEditorInput } from 'vs/workbench/common/editor/sideBySideEditorInput'; import { SideBySideEditorInput } from 'vs/workbench/common/editor/sideBySideEditorInput';
import { ILanguageStatus, ILanguageStatusService } from 'vs/editor/common/services/languageStatusService'; 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'; import { ILanguageDetectionService } from 'vs/workbench/services/languageDetection/common/languageDetection';
class SideBySideEditorEncodingSupport implements IEncodingSupport { class SideBySideEditorEncodingSupport implements IEncodingSupport {
...@@ -340,8 +339,7 @@ export class EditorStatus extends Disposable implements IWorkbenchContribution { ...@@ -340,8 +339,7 @@ export class EditorStatus extends Disposable implements IWorkbenchContribution {
@INotificationService private readonly notificationService: INotificationService, @INotificationService private readonly notificationService: INotificationService,
@IAccessibilityService private readonly accessibilityService: IAccessibilityService, @IAccessibilityService private readonly accessibilityService: IAccessibilityService,
@IStatusbarService private readonly statusbarService: IStatusbarService, @IStatusbarService private readonly statusbarService: IStatusbarService,
@IInstantiationService private readonly instantiationService: IInstantiationService, @IInstantiationService private readonly instantiationService: IInstantiationService
@IUntitledTextEditorService private readonly untitledEditorService: IUntitledTextEditorService,
) { ) {
super(); super();
...@@ -783,10 +781,6 @@ export class EditorStatus extends Disposable implements IWorkbenchContribution { ...@@ -783,10 +781,6 @@ export class EditorStatus extends Disposable implements IWorkbenchContribution {
if (textModel) { if (textModel) {
const modeId = textModel.getLanguageIdentifier().language; const modeId = textModel.getLanguageIdentifier().language;
info.mode = withNullAsUndefined(this.modeService.getLanguageName(modeId)); info.mode = withNullAsUndefined(this.modeService.getLanguageName(modeId));
const untitledTextEditorModel = this.untitledEditorService.get(textModel.uri);
if (untitledTextEditorModel) {
info.mode += untitledTextEditorModel.hasModeSetExplicitly ? '' : localize('languageModeAuto', " (Auto)");
}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册