We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c64f42b commit 57aca20Copy full SHA for 57aca20
1 file changed
src/vs/base/browser/ui/splitview/splitview.ts
@@ -736,6 +736,16 @@ export class SplitView extends Disposable {
736
let emptyDelta = this.size - contentSize;
737
738
const indexes = range(this.viewItems.length - 1, -1);
739
+ const lowPriorityIndexes = indexes.filter(i => this.viewItems[i].priority === LayoutPriority.Low);
740
+ const highPriorityIndexes = indexes.filter(i => this.viewItems[i].priority === LayoutPriority.High);
741
+
742
+ for (const index of highPriorityIndexes) {
743
+ pushToStart(indexes, index);
744
+ }
745
746
+ for (const index of lowPriorityIndexes) {
747
+ pushToEnd(indexes, index);
748
749
750
if (typeof lowPriorityIndex === 'number') {
751
pushToEnd(indexes, lowPriorityIndex);
0 commit comments