Repository navigation
Ensure that console clear command always cleans up everything - #8510
Merged
Merged
Conversation
…OnNewLine in virtualscroller.js
Collaborator
|
LGTM; thanks for taking a look so quickly! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Fixes #8428
Most specifically, the original spirit of 8428 and not what it turned into further down the line: When hitting console clear ensure that everything is cleared.
Approach
This fixes some, but not all of the causes of 8428. There are some issues that can cause items to get added outside of the VirtualScroller buckets so the old "delete items in buckets" clear wasn't sufficient. I made the cleanup much more thorough to ensure that this doesn't happen again.
I also found a couple items that could cause this issue, specifically the over-aggressive pruning and the fact that
ensureStartingOnNewLinewas not compatible with the VirtualScroller by directly modifying the DOM outside of VirtualConsole so I didn't know what was even happening.QA Notes
Ensure that clear console (Ctrl+L) always clears everything in the console, particularly in the cases in 8428.