-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Improvements to tsc --watch #17669
Merged
Merged
Improvements to tsc --watch #17669
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
802e283
Refactoring of the builder
sheetalkamat 499fabc
Do not update graph in builder if compile on save is not on
sheetalkamat 273569f
Make the host cache store the fileName instead of undefined for the m…
sheetalkamat 94a589b
Program cannot be reused if the missing file is now present
sheetalkamat ef5935b
Initial refactoring so that watch from tsc follows the tsserver projects
sheetalkamat e068475
Refactor so that builder handles only source files and program
sheetalkamat 6237b22
Move the builder to compiler directory
sheetalkamat 9b18f7b
Use builder to emit the files from the tsc.js
sheetalkamat 85b9254
Refactor out the tsc logic into another file so we can use that to te…
sheetalkamat 69e5abd
Refactor watched system from tsserver tests so that tscLib watch can …
sheetalkamat c814d8e
Add tests for the tsc --watch
sheetalkamat 2dd6aed
Emit tests
sheetalkamat 89c61e7
Modify the api in builder so that it tracks changed files
sheetalkamat bb91b32
Add tests to verify emitted files
sheetalkamat 46e3d1c
Refactoring so that instead of just using from tsc --watch the new ap…
sheetalkamat 031a637
Switch back to have tsc.ts the only file thats different in tsc.js ge…
sheetalkamat 0d5e6c9
Use cache for module resolution even in watch mode
sheetalkamat 2762232
Test for the module resolution caching
sheetalkamat 65a6ee0
Add test that fails because we dont watch module resolutions failed p…
sheetalkamat d55150c
Implementation of watching the failed lookup locations
sheetalkamat 8dc6248
Partial implementation for invalidating the program (instead of sourc…
sheetalkamat 7474ba7
Implementation for invalidating source file containing possibly chang…
sheetalkamat 6385f7e
Get semantic diagnostics for the program from builder so that it cach…
sheetalkamat d0a23bb
Merge branch 'watchImprovements' into builder
sheetalkamat 59d07dc
Simplified mutate map options
sheetalkamat 9895082
Updating according to feedback from PR
sheetalkamat f1b1b12
More work based on feedback
sheetalkamat 136b091
Update based on feedback
sheetalkamat 6bf9133
Update to PR feedback
sheetalkamat a99c04e
Make the failedLookuplocations to be readonly array
sheetalkamat b66b752
Update based on feedback
sheetalkamat e639ceb
Merge branch 'watchImprovements' into builder
sheetalkamat 8deef58
Remove the unused function from the Project since builder has this lo…
sheetalkamat 60e2e68
Merge branch 'watchImprovements' into builder
sheetalkamat 3908325
Merge branch 'watchImprovements' into builder
sheetalkamat 7173da2
Adding test for #16329 to verify the caching of file system when open…
sheetalkamat e500be2
Adding test for #16456 to verify watched directories in case-sensitiv…
sheetalkamat 6227a36
In Server when polling the file stat's do not send changed event in c…
sheetalkamat 55931c4
Update the failed lookup watches without doing lookups.
sheetalkamat e65df12
Add test for #16955 which simulates npm install
sheetalkamat e711238
Add api in builder to get changed files and use it to send project ch…
sheetalkamat 3b85f3f
Add tests to verify project changed event sent
sheetalkamat ea95f3b
Merge pull request #17820 from Microsoft/tsserverEventChangedFiles
sheetalkamat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
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.
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.
So we're using
new Date(0)
as a special sigil value? Why not useundefined
for that purpose?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.
@sheetalkamat bump
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.
hmm. I was using same logic that was already present. But I will look into it.