Commit Graph

26302 Commits

Author SHA1 Message Date
Daniel Rosenwasser 648a795eca Update LKG. 2019-01-17 17:21:39 -08:00
Daniel Rosenwasser 0098cf7dd4 Update version. 2019-01-17 17:21:28 -08:00
Sheetal Nandi e8ca5b0132 Merge pull request #29467 from Microsoft/incrementalBuild33
[release-3.3] Supports incremental build in tsc --b --w mode
2019-01-17 15:18:44 -08:00
Sheetal Nandi 392192152e renames 2019-01-17 13:59:27 -08:00
Sheetal Nandi a93b51aaae add missing type annotation 2019-01-17 13:59:10 -08:00
Sheetal Nandi 5a368ae31b PR feedback 2019-01-17 13:58:51 -08:00
Sheetal Nandi 0427ad0830 PR feedback 2019-01-17 13:58:36 -08:00
Sheetal Nandi dcce3c324a Fix typo 2019-01-17 13:58:24 -08:00
Sheetal Nandi 2b97802c7d Fix typo 2019-01-17 13:58:08 -08:00
Sheetal Nandi 72069a7afb CompilerHostLikeForCache rename 2019-01-17 13:57:49 -08:00
Sheetal Nandi 19cec03c33 Rename indexing variable 2019-01-17 13:57:32 -08:00
Sheetal Nandi 1470a7c404 Fix typo 2019-01-17 13:57:09 -08:00
Sheetal Nandi 66018ea73e Use DirectoryStructureHost for fileExists and readFile 2019-01-17 13:56:32 -08:00
Sheetal Nandi 75e2e2ee4d Handle declaration emit errors in tsbuild mode by backing up builder state
This helps us revert to state where we pretend as if emit is not done (since we do not do emit if there are errors)
2019-01-17 13:55:04 -08:00
Sheetal Nandi 82f8411a5f Write the tests for incremental build and declaration emit errors handling
These will fail since its still TODO
2019-01-17 13:54:01 -08:00
Sheetal Nandi 122339be2b Handle prepend in incremental build. Always emit when program uses project reference with prepend since it cant tell changes in js/map files 2019-01-17 13:53:38 -08:00
Sheetal Nandi e00df322d7 Update the timestamps of outputs that dont need to be written because of incremental build
This ensures that after `tsbuild` after incremental build of `tsbuild -w` doesnt result in unnecessary rebuilds
2019-01-17 13:53:19 -08:00
Sheetal Nandi 6be4439231 Use emit builder to emit only changed files. 2019-01-17 13:52:59 -08:00
Sheetal Nandi 2d712e3886 Use oldProgram to create the new Program.
This helps in storing the semantic diagnostics
2019-01-17 13:52:39 -08:00
Sheetal Nandi b6e6b99c83 Add method to release held Program in BuilderProgram 2019-01-17 13:51:48 -08:00
Sheetal Nandi 900dc8c6ac Revert BuilderProgram to be redirected object to Program in preparation to set Program in state to undefined for storing. 2019-01-17 13:48:24 -08:00
Sheetal Nandi 5d6ecb5436 Make SolutionBuilder handle BuilderProgram in preparation to handle incremental builds 2019-01-17 13:48:00 -08:00
Sheetal Nandi 9fcfa28c40 Make BuilderProgram as Program 2019-01-17 13:47:40 -08:00
Sheetal Nandi 8d2c359e78 Use watch factory instead of direct host functions in tsbuild to provide detailed information on watch invokations 2019-01-17 13:47:19 -08:00
Benjamin Lichtman 8680908150 Port #29314 (#29460)
Porting https://github.com/Microsoft/TypeScript/pull/29314 to release-3.3
2019-01-17 13:41:45 -08:00
Wesley Wigham 49689894d7 Elaborate jsx children elementwise (#29264)
* Heavy WIP, but has good contextual typing fix

* Add arity error, refine messages and spans

* Small error message change

* Better error messages, text-specific message
2019-01-15 11:32:36 -08:00
Andrew Casey 35f64fa894 Merge pull request #29421 from amcasey/DisabledLSHardening
Harden telemetryOnOpenFile against disabled projects
2019-01-15 11:23:05 -08:00
Andrew Casey 3fb09630a8 Add regression test 2019-01-15 10:55:15 -08:00
Benjamin Lichtman c5948bf068 Merge pull request #29385 from uniqueiniquity/renameImportPref
Add user preference to opt-in to renaming import paths
2019-01-15 10:29:57 -08:00
Ron Buckton 760b02b259 Merge pull request #29420 from Microsoft/fix29108
Remove overzealous simple relationship check for unique symbols
2019-01-15 09:47:13 -08:00
Andrew Casey b86cb27d0b Fix trailing whitespace 2019-01-14 18:13:13 -08:00
Andrew Casey 104434182b Harden telemetryOnOpenFile against disabled projects
As for syntax-only servers, we can't meaningfully report open-file
telemetry for projects with disabled language services.

Hopefully, a deeper fix will follow, but this solves the immediate
problem that VS disables the LS for all projects when it sees a failure
in applyChangedToOpenFiles (because it assumes the server state is
corrupt).
2019-01-14 17:43:06 -08:00
Ron Buckton 5763e2c3d4 Remove overzealous simple relationship check for unique symbols 2019-01-14 17:08:04 -08:00
Benjamin Lichtman 2c50ed3089 Respond to CR 2019-01-14 17:05:25 -08:00
Sheetal Nandi d53619a30d Merge pull request #29418 from Microsoft/exportEquals
Handle generating action for export equals with anonymous symbol
2019-01-14 16:12:32 -08:00
Sheetal Nandi 6e54cbdaff Handle generating action for export equals with anonymous symbol
Fixes #28845
2019-01-14 15:32:13 -08:00
Sheetal Nandi d69b2ea448 Merge pull request #29380 from Microsoft/sourceMap
Use the SourceMapSource to get line and column instead of current source file
2019-01-14 14:30:27 -08:00
Wesley Wigham 3d2bf6a75f Fix implement interface quickfix import types (#29410)
* Pass module specifier resolution host thru types constructed by implements quickfixes

* Add regression test

* Fix scope node for generated methods, fix lints
2019-01-14 13:56:27 -08:00
Wesley Wigham dc0f4afe5e Save & recalculate declare flag modifier on late printed statements (#29412)
* Save & recalculate declre flag modifier on late printed statements

* Accept related baseline updates
2019-01-14 13:53:04 -08:00
Sheetal Nandi d4055a3234 Merge pull request #26017 from ajafff/rest-param-destructuring
allow BindingPattern in FunctionRestParameter
2019-01-14 10:58:19 -08:00
Gabriela Britto e5708e1903 Merge pull request #29352 from Microsoft/qualified-name-param-tag-error
Qualified name param tag error
2019-01-14 10:28:08 -08:00
Benjamin Lichtman c88016d397 Fix comment 2019-01-11 14:52:47 -08:00
Sheetal Nandi d1061579d3 Merge branch 'master' into sourceMap 2019-01-11 14:47:24 -08:00
Benjamin Lichtman d029fae35c Add user preference to opt-in to renaming import paths 2019-01-11 14:45:08 -08:00
Wesley Wigham fadd95f72b Fix unneeded cast lints (#29383) 2019-01-11 14:24:49 -08:00
Sheetal Nandi 9f19c06dbf Merge pull request #29372 from JoshuaKGoldberg/codefix-enable-decorators
Added codefix to enable experimentalDecorators in the user's config file
2019-01-11 12:45:28 -08:00
Sheetal Nandi 021c63f1c3 Use the SourceMapSource to get line and column instead of current source file
Fixes #29300
2019-01-11 12:24:33 -08:00
Sheetal Nandi b23664adf7 Test to verify external source map range addition 2019-01-11 12:23:24 -08:00
Josh Goldberg 7b6adae6dd Extracted compilerOptions setting to helper function 2019-01-11 15:05:24 -05:00
Sheetal Nandi fb99d552ea Merge pull request #29022 from mprobst/no-resolve-libref
Do not process library reference directives with noLib set.
2019-01-11 09:03:46 -08:00