-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add error for missing await in conditionals #39175
Conversation
@typescript-bot test this |
Heya @DanielRosenwasser, I've started to run the extended test suite on this PR at 49ee464. You can monitor the build here. |
Heya @DanielRosenwasser, I've started to run the perf test suite on this PR at 49ee464. You can monitor the build here. Update: The results are in! |
Heya @DanielRosenwasser, I've started to run the parallelized community code test suite on this PR at 49ee464. You can monitor the build here. |
@typescript-bot pack this |
Heya @DanielRosenwasser, I've started to run the tarball bundle task on this PR at 49ee464. You can monitor the build here. |
Hey @DanielRosenwasser, I've packed this into an installable tgz. You can install it for testing by referencing it in your
and then running There is also a playground for this build. |
The user suite test run you requested has finished and failed. I've opened a PR with the baseline diff from master. |
@DanielRosenwasser Here they are:Comparison Report - master..39175
System
Hosts
Scenarios
|
@mjbvz if we can get some of the numbers down, we'd like to get this merged in for a future release. Like @Jack-Works mentioned, I think this check might've caught a potential bug in VS Code in an un-awaited promise. |
Thanks @Jack-Works! The error in The error in |
Another question, should it behave like the check to function? If the variable is undefined | Promise, and use as a if condition. If it is not used in the if body, should it be an error? |
How's going 👀 |
49ee464
to
8c97320
Compare
This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise. |
rebased to master and merge conflict resolved |
The TypeScript team hasn't accepted the linked issue #25330. If you can get it accepted, this PR will have a better chance of being reviewed. |
8c97320
to
f55a7c7
Compare
rebased to master and merge conflict resolved |
f55a7c7
to
d345d44
Compare
rebased to master and conflict resolved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comments.
(Another pickiness: the title of the PR and the commit could be better, since it's not only in if
statements. The title of the linked issue is probably good for this PR too.)
212ceb6
to
bcbe12d
Compare
Rebased, resolved conflicts, squashed; re-edited the PR subject and the commit message. |
close #25330