-
Notifications
You must be signed in to change notification settings - Fork 38k
Closed
Labels
debtCode quality issuesCode quality issueslayoutGeneral VS Code workbench layout issuesGeneral VS Code workbench layout issues
Milestone
Description
Add this code to settingsEditor2.ts, layout()
if (!DOM.isInDOM(this.rootElement)) {
console.log('not in dom');
return;
} else {
console.log('in dom');
}Then open two editor groups, open the settings UI in one, click the button to toggle horizontal/vertical orientation, and see that the first branch is hit.
I think that an editor should not be called "visible" if its root element is not in the DOM.
I think that this is new, because I think the if (!this.isVisible()) check was trying to fix the same issue, but it might not be new.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
debtCode quality issuesCode quality issueslayoutGeneral VS Code workbench layout issuesGeneral VS Code workbench layout issues
