Sort by view column

This commit is contained in:
Logan Ramos
2021-09-20 11:41:19 -04:00
parent 1632a12f6f
commit 7eb84845c6

View File

@@ -63,6 +63,7 @@ export class ExtHostEditorTabs implements IExtHostEditorTabs {
isActive: dto.isActive
});
});
this._tabs = this._tabs.sort((t1, t2) => t1.viewColumn - t2.viewColumn);
const oldActiveTab = this._activeTab;
this._activeTab = activeIndex === -1 ? undefined : this._tabs[activeIndex];
if (this._activeTab !== oldActiveTab) {