Skip to content

Commit cd6edb7

Browse files
committed
reduce layout calls
related to microsoft#77856
1 parent fc52434 commit cd6edb7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/vs/base/browser/ui/grid/gridview.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,10 @@ class BranchNode implements ISplitView, IDisposable {
356356
throw new Error('Invalid index');
357357
}
358358

359+
if (this.splitview.isViewVisible(index) === visible) {
360+
return;
361+
}
362+
359363
this.splitview.setViewVisible(index, visible);
360364
this._onDidChange.fire(undefined);
361365
}

0 commit comments

Comments
 (0)