Skip to content

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

Merged
Sheetal Nandi (sheetalkamat) merged 2 commits into
microsoft:masterfrom
fr3shw3b:errorCountInWatchStatusReporter
Aug 27, 2019
Merged

Added errorCount to WatchStatusReporter to detect 2 or more errors#33082
Sheetal Nandi (sheetalkamat) merged 2 commits into
microsoft:masterfrom
fr3shw3b:errorCountInWatchStatusReporter

Conversation

@fr3shw3b

Copy link
Copy Markdown
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

Microsoft Contribution License Agreements (msftclas) commented Aug 26, 2019

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

Comment thread src/compiler/watch.ts
@sheetalkamat
Sheetal Nandi (sheetalkamat) merged commit 5d36aab into microsoft:master Aug 27, 2019
@dsherret

Copy link
Copy Markdown
Contributor

Andre Sutherland (@fr3shw3b) quick question—in what scenario will errorCount be undefined?

Tim Suchanek (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
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
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.

createWatchCompilerHost watch status Diagnostic code success/failure is indiscernible

4 participants