Commit Graph

32018 Commits

Author SHA1 Message Date
Andrew Casey 94ca50177a Merge pull request #29451 from amcasey/GH27937
Consider JSX namespace imports when moving statements between files
2019-01-17 10:19:02 -08:00
Sheetal Nandi 9f3b77a8bd PR feedback 2019-01-17 09:23:20 -08:00
Anders Hejlsberg e5816491ba Allow rest parameter type to be a readonly array or tuple 2019-01-17 06:06:07 -08:00
Andrew Casey 4029e70c97 Illustrate a case that isn't handled correctly 2019-01-16 19:24:51 -08:00
Andrew Casey 3e256e14dc Add fourslash tests 2019-01-16 19:18:25 -08:00
Andrew Casey 7102de77d3 Consider JSX namespace imports when moving statements between files
Each of the old and new files should end up with a JSX namespace import
iff it contains JSX.

Fixes #27939
2019-01-16 18:55:27 -08:00
Ron Buckton 6b32f4edcb Fix gulp builds not building some targets 2019-01-16 17:32:58 -08:00
Gabriela Britto 23fc65a60c implement new parameter creation 2019-01-16 16:32:32 -08:00
Gabriela Britto 705ac60a59 WIP 2019-01-16 15:49:09 -08:00
rflorian 8a048159ba Merge branch 'master' into add-codefix-cannot-find-name-in-for-loop 2019-01-17 00:07:43 +01:00
xiaofa c9c9f859f3 fix quick fix infer parameter types from usage in js file 2019-01-17 05:51:57 +08:00
Anders Hejlsberg d24a63d93d Accept new baselines 2019-01-16 12:45:42 -08:00
Anders Hejlsberg 0eac506fc0 Add .d.ts generation test 2019-01-16 12:45:33 -08:00
TypeScript Bot a9c5a0472f Update user baselines (#29444) 2019-01-16 12:05:41 -08:00
Benjamin Lichtman 5fc8f1dd80 Add opt-in user preference for prefix and suffix text on renames (#29314)
* Add user preference to control renaming through exports

* Only impact renaming

* Update baselines

* Use flag to control all prefix and suffix text and imports

* [WIP] add tests

* Only skip export import specifier with flag

* [WIP] Update tests

* Update test

* Pick up preference from host and update test

* Shorten flag name

* Add missing utility function

* Update comment

* [WIP] rename flag and respond to cr

* [WIP] Add flag for forRelatedSymbol

* Use larger search symbol set for old-style rename

* Respond to CR

* Fix small error

* Fix type mismatch

* Update comment and remove unnecessary exprot

* Respond to CR
2019-01-16 10:58:07 -08:00
Anders Hejlsberg b611a51381 Accept new baselines 2019-01-16 09:46:39 -08:00
Anders Hejlsberg 2ccc106984 Add more tests 2019-01-16 09:46:28 -08:00
Anders Hejlsberg 2256f9159f Fix typo 2019-01-16 09:46:02 -08:00
Wesley Wigham 41a7bf4b73 Fake up value declaration for synthetic jsx children symbol so they get excess property checked (#29359) 2019-01-15 22:31:57 -08:00
Kagami Sascha Rosylight d8ac9ba414 Merge branch 'master' into es2019 2019-01-16 10:54:46 +09:00
Kagami Sascha Rosylight 6cd531b3d7 Merge branch 'master' into async-es2018 2019-01-16 10:48:06 +09:00
Daniel Rosenwasser 9cd5f2dd3c Add regression test. (#29433) 2019-01-15 17:39:02 -08:00
Gabriela Britto 9aeeae54b0 create refactoring for converting to named parameters 2019-01-15 16:56:53 -08:00
Anders Hejlsberg a7ca7f4561 Accept new baselines 2019-01-15 14:45:08 -08:00
Anders Hejlsberg cff7874288 Add tests 2019-01-15 14:44:57 -08:00
Anders Hejlsberg db840f41c5 Update array/tuple relationship checking 2019-01-15 14:44:38 -08:00
Daniel Rosenwasser adb4738cff Merge pull request #28132 from a-tarasyuk/feature/28086
28086 - "--downlevelIteration errors should mention using later targets"
2019-01-15 14:06:57 -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
Anders Hejlsberg 7b00a29b1c Accept new baselines 2019-01-15 10:00:47 -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
Anders Hejlsberg bb8378fddf Support 'readonly' type modifier on array and tuple types 2019-01-15 09:43:39 -08:00
Sheetal Nandi 520e33fa51 PR feedback 2019-01-14 18:15:54 -08:00
Andrew Casey b86cb27d0b Fix trailing whitespace 2019-01-14 18:13:13 -08:00
Ron Buckton 208148d05c Fix crash in getTextOfPropertyName 2019-01-14 17:47:52 -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 e745fca413 Fix typo 2019-01-14 14:35:05 -08:00
Josh Goldberg 38e1856945 Accepted 'witness' baselines; removed unnecessary !== 2019-01-14 17:30:42 -05: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
Sheetal Nandi ff97d86cfa Fix typo 2019-01-14 14:00:22 -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 3943588793 CompilerHostLikeForCache rename 2019-01-14 12:48:22 -08:00
Sheetal Nandi c909becdd5 Rename indexing variable 2019-01-14 12:44:37 -08:00