Skip to content

Added errorCount to WatchStatusReporter to detect 2 or more errors #33082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

fr3shw3b
Copy link
Contributor

Adds an api improvement to compiler watch functionality that allows distinguishing between 0 and 2 or more errors in a watch status reporter.

Fixes #32542

Have spent some time trying to gauge how to unit test the change for the watch api but couldn't find a clear and obvious place to put it.

@msftclas
Copy link

msftclas commented Aug 26, 2019

CLA assistant check
All CLA requirements met.

@sheetalkamat sheetalkamat merged commit 5d36aab into microsoft:master Aug 27, 2019
@dsherret
Copy link
Contributor

@fr3shw3b quick question—in what scenario will errorCount be undefined?

timsuchanek pushed a commit to timsuchanek/TypeScript that referenced this pull request Sep 11, 2019
…icrosoft#33082)

* Added errorCount to WatchStatusReporter discern between 0 and 2 or more errors

* Added test for ensuring WatchStatusReporter receives errorCount
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.

createWatchCompilerHost watch status Diagnostic code success/failure is indiscernible
4 participants