Skip to content

Fix debug console is cleared on style changed#224694

Merged
roblourens merged 2 commits intomicrosoft:mainfrom
BABA983:fix-debug-console-cleared-on-style-changed
Sep 28, 2024
Merged

Fix debug console is cleared on style changed#224694
roblourens merged 2 commits intomicrosoft:mainfrom
BABA983:fix-debug-console-cleared-on-style-changed

Conversation

@BABA983
Copy link
Copy Markdown
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 ee6c1ca to 426836c Compare August 3, 2024 16:56
@BABA983 BABA983 force-pushed the fix-debug-console-cleared-on-style-changed branch from 426836c to 25ade0f Compare August 16, 2024 16:26
@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
Copy Markdown
Contributor Author

BABA983 commented Aug 16, 2024

@roblourens ping in case you miss that.

Copy link
Copy Markdown
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
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Nov 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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