Skip to content

Don't render text when the view is hidden #251583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pisv
Copy link
Contributor

@pisv pisv commented Jun 16, 2025

Currently, there is a check in view.ts that avoids rendering text when the view node is not connected. This PR proposes to add another simple check that would avoid rendering text when the view node is hidden.

It would be useful for Monaco adopters such as Eclipse Theia, which have an editor lifecycle that differs from the editor lifecycle in the VS Code workbench. As such, it should make Monaco more reusable outside VS Code.

Please see eclipse-theia/theia#15500 (comment) for some background.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants