mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-10 10:12:34 -05:00
Merge from vscode 112fa76c775ecb79ac2c9e9e5dba0d711d523543 (#6388)
This commit is contained in:
@@ -736,6 +736,16 @@ export class SplitView extends Disposable {
|
||||
let emptyDelta = this.size - contentSize;
|
||||
|
||||
const indexes = range(this.viewItems.length - 1, -1);
|
||||
const lowPriorityIndexes = indexes.filter(i => this.viewItems[i].priority === LayoutPriority.Low);
|
||||
const highPriorityIndexes = indexes.filter(i => this.viewItems[i].priority === LayoutPriority.High);
|
||||
|
||||
for (const index of highPriorityIndexes) {
|
||||
pushToStart(indexes, index);
|
||||
}
|
||||
|
||||
for (const index of lowPriorityIndexes) {
|
||||
pushToEnd(indexes, index);
|
||||
}
|
||||
|
||||
if (typeof lowPriorityIndex === 'number') {
|
||||
pushToEnd(indexes, lowPriorityIndex);
|
||||
|
||||
Reference in New Issue
Block a user