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:
parent
5b3100336f
commit
194ec9c858
1 changed files with 1 additions and 7 deletions
|
@ -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)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue