Skip to content

Defer onDidStyleChange to Repl being visible#200473

Merged
roblourens merged 2 commits intomicrosoft:mainfrom
hsfzxjy:debug-console-cleared-on-style-change-200369
Dec 18, 2023
Merged

Defer onDidStyleChange to Repl being visible#200473
roblourens merged 2 commits intomicrosoft:mainfrom
hsfzxjy:debug-console-cleared-on-style-change-200369

Conversation

@hsfzxjy
Copy link
Copy Markdown
Contributor

@hsfzxjy hsfzxjy commented Dec 10, 2023

fix #200369

When Repl is invisible, ListView.probeDynamicHeight cannot correctly calculate the height of each item, and thus it mistakenly removes all items.

This fix disables tree rerendering when Repl is hidden and defers the calculation to when Repl shows up again.

@roblourens roblourens added this to the December / January 2024 milestone Dec 15, 2023
@roblourens roblourens enabled auto-merge (squash) December 18, 2023 19:13
@roblourens roblourens merged commit cd808e5 into microsoft:main Dec 18, 2023
@hsfzxjy hsfzxjy deleted the debug-console-cleared-on-style-change-200369 branch December 18, 2023 20:05
@microsoft microsoft locked and limited conversation to collaborators Jun 11, 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