We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d42fad2 commit aae4f6bCopy full SHA for aae4f6b
src/vs/workbench/api/browser/mainThreadEditorTabs.ts
@@ -472,6 +472,10 @@ export class MainThreadEditorTabs implements MainThreadEditorTabsShape {
472
* Builds the model from scratch based on the current state of the editor service.
473
*/
474
private _createTabsModel(): void {
475
+ if (this._editorGroupsService.groups.length === 0) {
476
+ return; // skip this invalid state, it may happen when the entire editor area is transitioning to other state ("editor working sets")
477
+ }
478
+
479
this._tabGroupModel = [];
480
this._groupLookup.clear();
481
this._tabInfoLookup.clear();
0 commit comments