remove special casing of untitled (#9379)

This commit is contained in:
Anthony Dresser
2020-03-02 17:24:34 -08:00
committed by GitHub
parent efab499f1f
commit 89786bea04

View File

@@ -252,7 +252,7 @@ class ResourceLabelWidget extends IconLabel {
@IModelService private readonly modelService: IModelService, @IModelService private readonly modelService: IModelService,
@IDecorationsService private readonly decorationsService: IDecorationsService, @IDecorationsService private readonly decorationsService: IDecorationsService,
@ILabelService private readonly labelService: ILabelService, @ILabelService private readonly labelService: ILabelService,
@ITextFileService private readonly textFileService: ITextFileService, // @ITextFileService private readonly textFileService: ITextFileService,
@IWorkspaceContextService private readonly contextService: IWorkspaceContextService @IWorkspaceContextService private readonly contextService: IWorkspaceContextService
) { ) {
super(container, options); super(container, options);
@@ -346,7 +346,7 @@ class ResourceLabelWidget extends IconLabel {
} }
setResource(label: IResourceLabelProps, options: IResourceLabelOptions = Object.create(null)): void { setResource(label: IResourceLabelProps, options: IResourceLabelOptions = Object.create(null)): void {
if (label.resource?.scheme === Schemas.untitled) { /*if (label.resource?.scheme === Schemas.untitled) { {{SQL CARBON EDIT}} we don't want to special case untitled files
// Untitled labels are very dynamic because they may change // Untitled labels are very dynamic because they may change
// whenever the content changes (unless a path is associated). // whenever the content changes (unless a path is associated).
// As such we always ask the actual editor for it's name and // As such we always ask the actual editor for it's name and
@@ -376,7 +376,7 @@ class ResourceLabelWidget extends IconLabel {
options.title = untitledTitle; options.title = untitledTitle;
} }
} }
} }*/
const hasPathLabelChanged = this.hasPathLabelChanged(label, options); const hasPathLabelChanged = this.hasPathLabelChanged(label, options);
const clearIconCache = this.clearIconCache(label, options); const clearIconCache = this.clearIconCache(label, options);