Skip to content

Commit bee6dee

Browse files
committed
views: No priroity, keep views sorted in the order they got registered
1 parent 5263047 commit bee6dee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/workbench/common/views.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ function compareViewContentDescriptors(a: IViewContentDescriptor, b: IViewConten
262262
return aPriority - bPriority;
263263
}
264264

265-
return a.content < b.content ? -1 : 1;
265+
// No priroity, keep views sorted in the order they got registered
266+
return 0;
266267
}
267268

268269
class ViewsRegistry extends Disposable implements IViewsRegistry {
@@ -601,4 +602,3 @@ export interface IViewPaneContainer {
601602
getView(viewId: string): IView | undefined;
602603
saveState(): void;
603604
}
604-

0 commit comments

Comments
 (0)