Andy
0e9364f48e
Simplify functions for adding parse errors ( #22513 )
...
* Simplify functions for adding parse errors
* Prefer parseErrorAt over parseErrorAtRange
2018-03-23 08:34:04 -07:00
Sheetal Nandi
78c12cdb9d
Merge pull request #22808 from Microsoft/moduleResolutionEvents
...
Invalidate resolutions from typeRoots watch event as a fallback mechanism
2018-03-22 20:41:14 -07:00
Andrew Casey
6524fc53be
Merge pull request #22590 from amcasey/DiagEvents
...
Add support for suppressing project events
2018-03-22 17:50:07 -07:00
Andrew Casey
e37ff2574b
Test suppression of diagnostic events
2018-03-22 16:44:12 -07:00
Andrew Casey
517cf6aa89
Add support for suppressing project events
...
VS doesn't consume (e.g.) `syntaxDiag` events, so there's no reason to
do the work to compute their payloads.
2018-03-22 16:44:09 -07:00
Nathan Shively-Sanders
e16bb3e418
Improve behaviour of ...
inside JSDoc functions ( #22809 )
...
* No error for ... on last param of jsdoc function
* ... is a rest param w/array type in jsdoc function
* Simplify getTypeFromJSDocVariadicType
2018-03-22 16:17:16 -07:00
Wesley Wigham
ca1d19a579
Always make a new jsxAttributes type, dont reuse emptyObjectType ( #22810 )
...
* Always make a new jsxAttributes type, dont reuse emptyObjectType
* Break up conditional a bit
2018-03-22 15:16:33 -07:00
Wesley Wigham
a909000b62
Parse and check type arguments on JSX opening and self-closing tags ( #22415 )
...
* Parse and check type arguments on JSX opening like elements
* Fix nits
2018-03-22 15:07:36 -07:00
Wesley Wigham
a7b066fe04
Allow local class declarations to be returned as mixins ( #22807 )
2018-03-22 15:02:54 -07:00
Wesley Wigham
874dd25494
Stop printing two spaces between heritage clauses ( #22801 )
...
* Stop printing two spaces between heritage clauses
* Fix lint
2018-03-22 14:59:40 -07:00
Andy
94570eedcc
Don't provide spelling suggestion for module ( #22805 )
2018-03-22 14:27:34 -07:00
Sheetal Nandi
306ed1291b
Invalidate resolutions from typeRoots watch event as a fallback mechanism
...
There are times when the directory watcher for failed lookup locations isnt invoked and is not very determinitstic
So as a fallback, when we receive typeRoots watch event, handle failed lookup locations as well
2018-03-22 13:54:41 -07:00
Daniel Rosenwasser
810b386c2a
Merge pull request #22803 from Microsoft/updateTo2.9
...
Update master version to 2.9.
2018-03-22 13:46:22 -07:00
Daniel Rosenwasser
a0c95ed8c0
Accepted baselines.
2018-03-22 13:27:55 -07:00
Andy
e0ca8a5f39
organizeImports: Fix bug in reference-testing for renamed import ( #22797 )
2018-03-22 13:08:58 -07:00
Daniel Rosenwasser
db1e924a4b
Update version to 2.9.
2018-03-22 13:06:00 -07:00
Andy
54274a8a2a
Fixes for new mocha types ( #22799 )
...
* Fixes for new mocha types
* fix lint
2018-03-22 12:44:19 -07:00
Wesley Wigham
7721cc45c8
Improve assertion violation message ( #22522 )
2018-03-22 11:46:52 -07:00
Andy
67670d8726
Revert change to canUseEvents
in IoSessionOptions
( #22791 )
2018-03-22 10:29:32 -07:00
Nathan Shively-Sanders
4462c159b1
Correctly track thisContainer for this-property-assignments in JS nested containers ( #22779 )
...
* Track thisContainer for this-property-assignments in JS
Previously it would update on every block, not just those that could
bind `this`.
In addition, if the constructor symbol still can't be found, then no
binding happens. This is usually OK because people don't add new
properties in methods too often.
* Update additional baselines
* Add lib:dom to new test
* Address PR comments
* Correct new name for saveThisParentContainer
2018-03-22 09:54:43 -07:00
Sheetal Nandi
f3a1f165c2
Merge pull request #22729 from Microsoft/renameNodeModulesContainingAtTypes
...
Fix when program module resolution in watch mode when node_modules folder itself gets the rename event
2018-03-22 09:40:53 -07:00
Andy
6d82a20109
Combine getLastChild helpers ( #22418 )
2018-03-22 09:32:05 -07:00
Andy
b6b51a4d38
convertFunctionToEs6Class: Combine deletes
and deletedNodes
( #22742 )
2018-03-22 08:22:00 -07:00
Andy
f2f2393f4b
convertFunctionToEs6Class: Copy comments from constructor to class ( #22738 )
2018-03-22 08:12:02 -07:00
Andy
effcf2ac56
Fix test for overlapping changes ( #22741 )
2018-03-22 08:11:27 -07:00
Andy
3a3f57acfd
Remove unnecessary exports ( #22739 )
2018-03-22 08:10:52 -07:00
Andrew Casey
16697f6c7d
Merge pull request #22591 from amcasey/SessionOptions
...
Delete IoSessionOptions
2018-03-21 17:18:32 -07:00
Anders Hejlsberg
e5f6ed0b60
Merge pull request #22707 from Microsoft/fixIndexedAccessInConditionalType
...
Fix indexed access in conditional type
2018-03-21 15:18:39 -07:00
Andrew Casey
564183f9ed
Fix lint errors
2018-03-21 15:18:06 -07:00
Andrew Casey
9352a8bc11
Delete IoSessionOptions
...
Many of the operations were unused because the values were being
accessed directly from the enclosing scope.
2018-03-21 14:56:06 -07:00
Nathan Shively-Sanders
de4a69cb72
In source files and blocks, bind function declarations before other statements ( #22766 )
...
* Add test case and temporarily disable inference
(Inference of class members from this-assignments inside a
prototype-assigned function.)
* Update baselines
* In blocks and source files, bind functions first
* Add tests from other bugs
* Remove temporary failsafe
* Update tests to restore intent and clean up errors
* Restore intent even better
* Restore intent even better x2
* Add missed baselines
2018-03-21 14:22:09 -07:00
Anders Hejlsberg
ee546fb30f
Merge pull request #22764 from Microsoft/fixInferTypeDeclarationFiles
...
Fix missing 'infer T' in declaration files
2018-03-21 14:17:51 -07:00
Anders Hejlsberg
275311edd3
Accept new baselines
2018-03-21 13:35:26 -07:00
Anders Hejlsberg
eb3fd150a7
Add regression test
2018-03-21 13:35:15 -07:00
Anders Hejlsberg
174f400d8d
Accept new baselines
2018-03-21 13:31:40 -07:00
Anders Hejlsberg
9083f6cf18
Revise binder logic to correctly find 'infer T' containers
2018-03-21 13:23:58 -07:00
Anders Hejlsberg
a75449cabc
Revert strict containment check in checkInferType
2018-03-21 13:22:58 -07:00
Nathan Shively-Sanders
c930895d80
Undo 'any' inference propagation ( #22736 )
...
* Undo 'any' inference propagation
Removing this only changes one test slightly, and fixes JQuery types,
which rely on the old method of inference.
* Add jquery regression test and update baselines
* Restore any inference propagation to wildcard only
2018-03-21 11:13:39 -07:00
Anders Hejlsberg
09da98b185
Accept new baselines
2018-03-21 10:03:57 -07:00
Anders Hejlsberg
4fef35cdd0
Add regression test
2018-03-21 10:03:48 -07:00
Anders Hejlsberg
b2a517e314
Accept new baselines
2018-03-21 10:03:34 -07:00
Anders Hejlsberg
fa8564fa9e
Add test to verify errors on nested 'infer T' declarations
2018-03-21 10:03:07 -07:00
Anders Hejlsberg
fbd50487a5
Properly generate 'infer T' declarations in typeToTypeNode
2018-03-21 10:01:30 -07:00
Anders Hejlsberg
be4f2d9b08
Accept new baselines
2018-03-21 06:48:22 -07:00
Anders Hejlsberg
c94d28dbc8
Add test
2018-03-21 06:47:57 -07:00
csigs
6a86534d81
LEGO: Merge pull request 22754
...
LEGO: Merge pull request 22754
2018-03-20 21:10:44 -07:00
csigs
cda4b13d3f
LEGO: check in for master to temporary branch.
2018-03-21 04:10:22 +00:00
csigs
f526340d73
LEGO: Merge pull request 22745
...
LEGO: Merge pull request 22745
2018-03-20 15:11:10 -07:00
csigs
b1c9a8e9dd
LEGO: check in for master to temporary branch.
2018-03-20 22:10:51 +00:00
Anders Hejlsberg
420e58c444
Implicit constraints in non-distributive '[T] extends [U] ? X : Y' types
2018-03-20 14:08:05 -07:00