Skip to content

Commit aae4f6b

Browse files
authored
Editor tabs - assertion when setting working set (fix microsoft#205241) (microsoft#209030)
1 parent d42fad2 commit aae4f6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/vs/workbench/api/browser/mainThreadEditorTabs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,10 @@ export class MainThreadEditorTabs implements MainThreadEditorTabsShape {
472472
* Builds the model from scratch based on the current state of the editor service.
473473
*/
474474
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+
475479
this._tabGroupModel = [];
476480
this._groupLookup.clear();
477481
this._tabInfoLookup.clear();

0 commit comments

Comments
 (0)