Skip to content
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

Fix debug console is cleared on style changed #224694

Merged

Conversation

BABA983
Copy link
Contributor

@BABA983 BABA983 commented Aug 3, 2024

Close #200369

It seems when viewPanel body visibility changed the height was changed from 0 to the previous render height.

The listView.ts#L1439 will probe dynamic height when executing this.tree?.rerender.

After the calculation it removeItemFromDOM but not insertItemInDOM them back which result in looks like was cleared.

The fix was to insert the previous dom back into its container.

demo

@BABA983 BABA983 force-pushed the fix-debug-console-cleared-on-style-changed branch from 25ade0f to caf91a5 Compare August 16, 2024 16:27
@BABA983
Copy link
Contributor Author

BABA983 commented Aug 16, 2024

@roblourens ping in case you miss that.

Copy link
Member

@roblourens roblourens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me, thanks!

@roblourens roblourens enabled auto-merge (squash) September 28, 2024 00:28
@vs-code-engineering vs-code-engineering bot added this to the October 2024 milestone Sep 28, 2024
@roblourens roblourens merged commit 6eba3f2 into microsoft:main Sep 28, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The debug console content is cleared when debug console font size is changed
3 participants