Skip to content

Editors are marked as visible when not in the DOM #89943

@roblourens

Description

@roblourens

Add this code to settingsEditor2.ts, layout()

		if (!DOM.isInDOM(this.rootElement)) {
			console.log('not in dom');
			return;
		} else {
			console.log('in dom');
		}

image

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.

Metadata

Metadata

Assignees

Labels

debtCode quality issueslayoutGeneral VS Code workbench layout issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions