Commit graph

189 commits

Author SHA1 Message Date
Sheetal Nandi e500be28cd Adding test for #16456 to verify watched directories in case-sensitive and non sensitive file system and fixing caching 2017-08-22 11:21:02 -07:00
Sheetal Nandi 3908325f46 Merge branch 'watchImprovements' into builder 2017-08-21 11:44:09 -07:00
Sheetal Nandi 84b2e23033 More PR feedback work 2017-08-21 11:39:04 -07:00
Sheetal Nandi 8deef58fd6 Remove the unused function from the Project since builder has this logic now. 2017-08-18 12:15:03 -07:00
Sheetal Nandi e639ceb038 Merge branch 'watchImprovements' into builder 2017-08-18 11:56:12 -07:00
Sheetal Nandi da0d374b30 Made updates to not expose methods/types that arent needed. 2017-08-18 11:55:47 -07:00
Sheetal Nandi a99c04e8f9 Make the failedLookuplocations to be readonly array 2017-08-15 10:22:48 -07:00
Sheetal Nandi 6bf9133461 Update to PR feedback 2017-08-14 18:51:05 -07:00
Sheetal Nandi 136b091a4a Update based on feedback 2017-08-14 16:34:30 -07:00
Sheetal Nandi f1b1b12604 More work based on feedback 2017-08-14 14:59:51 -07:00
Sheetal Nandi 59d07dc488 Simplified mutate map options 2017-08-14 11:27:02 -07:00
Sheetal Nandi d0a23bb876 Merge branch 'watchImprovements' into builder 2017-08-12 15:35:30 -07:00
Sheetal Nandi 594482d2c9 Merge branch 'master' into watchImprovements 2017-08-11 20:13:15 -07:00
Sheetal Nandi 8db05c2d85 More work on PR feedback update 2017-08-11 16:37:47 -07:00
Sheetal Nandi b071a8610c More work on feedback from PR 2017-08-11 16:10:56 -07:00
Ron Buckton 360dc914c3 Merge pull request #17602 from Microsoft/multiInferredProjects
Adds support for inferred project isolation by projectRootPath
2017-08-11 16:06:49 -07:00
Sheetal Nandi 02b8a7de65 More work on PR feedback 2017-08-10 12:40:31 -07:00
Andy f124e19971 Session: don't return undefined if a response is required (#17165)
* Session: don't return undefined if a response is required

* Use ReadonlyArray and emptyArray

* Remove inferred return type
2017-08-09 13:46:47 -07:00
Sheetal Nandi 65521bc259 Feedback from the PR 2017-08-08 15:12:02 -07:00
Andy 5141ce751d Deduplicate unresolvedImports (#17248)
* Deduplicate unresolvedImports

* Add `isNonDuplicateInSortedArray` helper
2017-08-08 11:02:10 -07:00
Andy ceae613e4c Add lint rule to check that Debug.assert calls do not eagerly interpolate strings (#17125)
* And lint rule to check that `Debug.assert` calls do not eagerly interpolate strings

* Use more specific 'assert' functions to avoid callbacks

* Respond to PR feedback
2017-08-08 07:56:14 -07:00
Andy 382785a528 Fix logging of module resolution errors (#17144) 2017-08-08 07:54:08 -07:00
Sheetal Nandi 7474ba762c Implementation for invalidating source file containing possibly changed module resolution 2017-08-07 11:31:13 -07:00
Sheetal Nandi 8dc62484ec Partial implementation for invalidating the program (instead of source file as that would involve more work) so the files are picked up 2017-08-07 11:31:13 -07:00
Sheetal Nandi d55150cbd3 Implementation of watching the failed lookup locations 2017-08-07 11:31:13 -07:00
Sheetal Nandi 0d5e6c9de5 Use cache for module resolution even in watch mode 2017-08-07 11:31:12 -07:00
Sheetal Nandi 89c61e797c Modify the api in builder so that it tracks changed files 2017-08-07 11:24:07 -07:00
Sheetal Nandi 9b18f7b61c Use builder to emit the files from the tsc.js 2017-08-07 11:19:53 -07:00
Sheetal Nandi 6237b221da Move the builder to compiler directory 2017-08-07 11:19:52 -07:00
Sheetal Nandi e06847503c Refactor so that builder handles only source files and program 2017-08-07 11:19:52 -07:00
Sheetal Nandi ef5935b52c Initial refactoring so that watch from tsc follows the tsserver projects 2017-08-07 11:19:52 -07:00
Sheetal Nandi 499fabc2c1 Do not update graph in builder if compile on save is not on 2017-08-07 11:04:33 -07:00
Sheetal Nandi 802e283aa7 Refactoring of the builder 2017-08-07 11:04:33 -07:00
Sheetal Nandi ae87838f45 Merge branch 'master' into watchImprovements 2017-08-07 11:04:11 -07:00
Ron Buckton fa7f3e85fe Adds support for inferred project isolation by projectRootPath 2017-08-03 16:03:59 -07:00
Sheetal Nandi 711e890e59 Added | undefined to properties for watching that can be undefined 2017-07-28 14:56:43 -07:00
Sheetal Nandi c2d0d533c4 dispose the watched wild card directories only if present 2017-07-28 14:56:33 -07:00
Sheetal Nandi 1155c37fcb Merge branch 'master' into watchImprovements 2017-07-20 09:49:30 -07:00
Andy c60774b4c6 Make many 'static' variables readonly (#17306) 2017-07-20 08:54:47 -07:00
Sheetal Nandi ff34a77ab6 Merge branch 'master' into watchImprovements 2017-07-17 16:54:28 -07:00
Sheetal Nandi 2439e7affb Reduce the number of watched config files by watching the chain only in case of inferred root 2017-07-17 16:50:26 -07:00
Andy 555776eb3c Minor cleanups in builder (#17208)
* Minor cleanups in builder

* Use enumerateInsertsAndDeletes
2017-07-17 12:24:56 -07:00
Sheetal Nandi dcbd7b10f1 Combine the logic to find config file as well as the watch.
This should speed up the file open scenarios where the file belongs to same configured project as we would use cache to answer those fileExists answers
2017-07-15 22:26:10 -07:00
Sheetal Nandi 0572b15adc Instead of watching directories, watch tsconfig files of inferred project root 2017-07-15 19:11:27 -07:00
Sheetal Nandi 71d79c62d0 Some refactoring to combine files removal from inferred project 2017-07-15 11:37:32 -07:00
Sheetal Nandi 404aa8f0be Logging of the watch add/remove/event 2017-07-14 17:39:42 -07:00
Sheetal Nandi 0365901381 use single instance of getCanonicalFileName 2017-07-13 15:32:11 -07:00
Sheetal Nandi 048e67c021 Merge branch 'master' into watchImprovements 2017-07-13 14:13:14 -07:00
Andy d2ec45f354 Remove unnecessary 'ts.' qualifications (#17163) 2017-07-13 13:08:59 -07:00
Sheetal Nandi e568976239 Allows the delayed update graph and project structure which helps in batching the updates when there are multiple files added/removed/changed 2017-07-13 11:32:40 -07:00