diff --git a/src/vs/workbench/browser/labels.ts b/src/vs/workbench/browser/labels.ts index f802e31f751..3740d5fc2c3 100644 --- a/src/vs/workbench/browser/labels.ts +++ b/src/vs/workbench/browser/labels.ts @@ -240,14 +240,14 @@ class ResourceLabelWidget extends IconLabel { } notifyVisibilityChanged(visible: boolean): void { - // if (visible === this.isHidden) { - // this.isHidden = !visible; + if (visible === this.isHidden) { + this.isHidden = !visible; - // if (visible && this.needsRedraw) { - // this.render(this.needsRedraw === Redraw.Basic ? false : true); - // this.needsRedraw = void 0; - // } - // } + if (visible && this.needsRedraw) { + this.render(this.needsRedraw === Redraw.Basic ? false : true); + this.needsRedraw = void 0; + } + } } notifyModelModeChanged(e: { model: ITextModel; oldModeId: string; }): void {