Repository navigation
feat: add --clear-screen option for watch mode - #6133
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6133 +/- ##
==========================================
+ Coverage 82.38% 82.44% +0.06%
==========================================
Files 61 61
Lines 4564 4569 +5
Branches 958 959 +1
==========================================
+ Hits 3760 3767 +7
+ Misses 804 802 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
Author
JoshuaKGoldberg
previously approved these changes
Jul 4, 2026
JoshuaKGoldberg
left a comment
Member
There was a problem hiding this comment.
Very clean! And a great PR description too 🙂. Just a couple of small touchups please.
Contributor
Author
|
@JoshuaKGoldberg I had to use this in another project and actually your point stands. I did a new round of searching and i think you were right, though both standard the one you recommended seems to be the convention. Excuse me for being a smart aleck 😁. |
mark-wiemer
approved these changes
Jul 18, 2026
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.


PR Checklist
--clearscreenoption to go with--watch#2312status: accepting prsOverview
Added a --clear-screen flag that clears the terminal before each run under --watch. I took the name from Josh's suggestion in the issue. It clears before every run,including the first, to match the "min" reporter and "tsc --watch".
It's a no-op without --watch so it stays out of the way of single runs.