Skip to content

Fix fileExists check for a watch program #37260

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
merged 3 commits into from
Mar 6, 2020

Conversation

uniqueiniquity
Copy link
Contributor

@uniqueiniquity uniqueiniquity commented Mar 6, 2020

Discovered this when investigating repeated program recalculation when invoking ts.Watch.getProgram() even when no changes have been made. It seems like the current behavior doesn't actually match the comment (or even seem correct at all, regardless of the comment). That being said, I'm not sure the baseline changes are correct.

Copy link
Member

@amcasey amcasey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your change certainly looks correct and, as far as I can tell, the test was expecting that file to exist so the baseline updates are probably correct as well. If there turns out to be some subtle reason this is not correct, the code definitely needs clarification.

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.

3 participants