Skip to content

Ensure that console clear command always cleans up everything - #8510

Merged
kevinushey merged 1 commit into
masterfrom
bugfix/cleaner_console_clear
Dec 2, 2020
Merged

kevinushey merged 1 commit into
masterfrom
bugfix/cleaner_console_clear

Conversation

@adamconroy

Copy link
Copy Markdown
Contributor

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 ensureStartingOnNewLine was 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.

@adamconroy
adamconroy requested a review from kevinushey December 2, 2020 09:56
@kevinushey

Copy link
Copy Markdown
Collaborator

LGTM; thanks for taking a look so quickly!

@kevinushey
kevinushey merged commit 3ce9c7e into master Dec 2, 2020
@valerie-rstudio
valerie-rstudio deleted the bugfix/cleaner_console_clear branch January 21, 2022 18:00
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.

using Ctrl + L to clear console sometimes leaves behind old output

2 participants