Nathan Shively-Sanders
f47c96f030
Merge branch 'master' into excess-property-checks-for-discriminated-unions
2017-08-24 09:09:18 -07:00
Daniel Rosenwasser
a52030db8b
Merge pull request #17907 from Microsoft/excessPropCorrection
...
Provide spelling suggestions for excess property errors
2017-08-23 15:41:48 -07:00
Nathan Shively-Sanders
ca86dc4deb
Test:jsdoc nullable syntax legal in type arguments
...
And update baselines
2017-08-23 15:00:40 -07:00
Nathan Shively-Sanders
2b9aba47d6
Merge pull request #17984 from Microsoft/typeReferenceRelations
...
Recursive-related-check generic type references based on the id of their targets and type arguments
2017-08-23 13:22:27 -07:00
Nathan Shively-Sanders
e27d0917c9
Test performance improvement:nested reference skip
2017-08-23 11:46:44 -07:00
Ron Buckton
a6015e94a5
Merge pull request #17879 from Microsoft/fix17875
...
Remove debug assertions due to invalid syntax in generators transform
2017-08-22 14:34:25 -07:00
Wesley Wigham
009d9b4f22
For JSX Attributes, map over unions of props for contextual types ( #17790 )
...
* For JSX Attributes, allow attributes to fulfill the member of any union member; rather than all of them
* Use cached way of getting partial union members
* Reuse methodology used for object literals for jsx attributes
* Inline assignment
* Rename type
2017-08-22 14:13:56 -07:00
Daniel Rosenwasser
40e9e85cb3
Merge branch 'master' into excessPropCorrection
2017-08-22 12:10:16 -07:00
Anders Hejlsberg
2b10784415
Merge pull request #17922 from Microsoft/baseExpressionTypeParameters
...
Class type parameters not in scope in base class expression
2017-08-22 07:14:54 +01:00
Anders Hejlsberg
914d428ff1
Add regression test
2017-08-19 09:53:46 +02:00
Daniel Rosenwasser
7739a1cea0
Actually misspell the property name.
2017-08-19 00:03:50 -07:00
Andy
5e8e735db5
quickInfo: Don't check for type === undefined, check for any ( #17815 )
...
* quickInfo: Don't check for `type === undefined`, check for `any`
* Fixes:
* We still want to do some work even if type is `any`
* Second test for `if (type)` is necessary because it might not have been assigned.
2017-08-18 17:21:25 -07:00
Wesley Wigham
a136f554a7
Fix stack overflow when resolving default construct signatures ( #17878 )
...
* Fix stack overflow when resolving default construct signatures
* No need for || emptyArray
2017-08-18 17:20:57 -07:00
Benjamin Lichtman
45c62ac0a6
Merge pull request #17709 from uniqueiniquity/objectsInArray
...
Correct outlining spans for object and array literals in array
2017-08-18 16:25:08 -07:00
Arthur Ozga
a3d113bed3
Merge pull request #16385 from aozgaa/isInMultiLineComment
...
multi-line comment formatting fix and handler
2017-08-18 12:43:37 -07:00
Daniel Rosenwasser
4983e11b67
Added test for leading underscore property name suggestions.
2017-08-18 11:46:34 -07:00
Arthur Ozga
6b68da1185
Revert "Fix getConstraintOfIndexedAccess"
2017-08-18 11:32:53 -07:00
Arthur Ozga
439cdca52f
Merge pull request #17870 from Microsoft/fix-getConstraintOfIndexedAccess
...
Fix getConstraintOfIndexedAccess
2017-08-18 11:32:48 -07:00
Arthur Ozga
e7d2af0d72
remove duplicate verify
2017-08-17 20:06:34 -07:00
Ron Buckton
fad97e369a
Remove debug assertions due to invalid syntax in generators transform
2017-08-17 17:32:06 -07:00
Andy
eef7d8bd3d
Treat explicit imports from node_modules as external library imports ( #16364 )
...
* Treat explicit imports from `node_modules` as external library imports
* Update baselines
2017-08-17 13:26:38 -07:00
Nathan Shively-Sanders
1b4f90705f
Test getConstraintOfIndexedAccess fixes and update baselines
2017-08-17 12:45:20 -07:00
Arthur Ozga
bc0c9a440e
Merge branch 'master' into formattingAfterParseError
2017-08-16 20:27:06 -07:00
Arthur Ozga
760ef44c36
test if onlyMultiLine flag changes answer
2017-08-16 18:48:27 -07:00
Arthur Ozga
19e2fa6fc5
Merge branch 'master' into isInMultiLineComment
2017-08-16 17:57:04 -07:00
Arthur Ozga
62f16bee55
add tests
2017-08-16 17:36:50 -07:00
Arthur Ozga
4b9f5a0f8f
rename tests
2017-08-16 17:36:39 -07:00
Arthur Ozga
70e4f346bb
update test
2017-08-16 17:35:14 -07:00
Arthur Ozga
153b94aeb4
JsxText has no leading comments
2017-08-16 15:28:47 -07:00
Nathan Shively-Sanders
146f828919
Merge pull request #17710 from Microsoft/add-readonly-check-to-property-access-of-index-signature
...
Add readonly check to property access of index signature
2017-08-16 11:16:54 -07:00
Nathan Shively-Sanders
7809398ad4
Indexed-assignment readonly err is not unknownType
...
Now, in an assignment to an indexed access of a readonly property, the
resulting type is still the property's type. Previously it was
unknownType. This improves error reporting slightly by reporting some
errors that were previously missed.
2017-08-16 10:06:01 -07:00
Anders Hejlsberg
ce2ac1751e
Merge pull request #17771 from Microsoft/fixCircularContextualType
...
Fix circular contextual return type error
2017-08-16 09:17:15 +02:00
Arthur Ozga
ad9c29b928
add test
2017-08-15 12:44:21 -07:00
Andy
10c8d5effa
In services, show the aliasSymbol for a type even if it's not accessible in the current scope ( #17433 )
...
* In services, show the aliasSymbol for a type even if it's not accessible in the current scope
* Rename flag
2017-08-15 10:23:45 -07:00
uniqueiniquity
760812f714
Add explanatory comments, consolidate main body
2017-08-14 09:27:45 -07:00
Anders Hejlsberg
57705fc4e0
Add regression test
2017-08-14 09:08:11 +02:00
Tycho Grouwstra
1d6863ab0b
loosen number index check, fixes #15768
2017-08-14 02:18:47 +08:00
Wesley Wigham
d03d1074ee
Make compiler options which map to a flag case-insensitive again ( #17755 )
2017-08-11 19:59:43 -07:00
Ron Buckton
09487b8a1d
Added tests, pr feedback
2017-08-11 15:31:09 -07:00
Ron Buckton
e3b6df64b3
Add support to infer the quote style for import quick fixes
2017-08-11 14:26:25 -07:00
uniqueiniquity
d6ccee6766
Cleans up and adds nested case to test
2017-08-11 13:42:14 -07:00
Yui
d352e3b03f
[Master] fix 16407 - LS in binding element of object binding pattern ( #16534 )
...
* wip-try get symbol of bindingelement in objectBindingPattern first
* Add fourslash tests
* Update .types baselines
* Update .symbols baselines
* Revert checker changes
* Actually lookup type for binding property name definition
* More succinct check, clarify yui's comment
2017-08-11 11:14:59 -07:00
Ryan Cavanaugh
c110ecb870
Merge pull request #17625 from RyanCavanaugh/extract-method-2
...
Extract Method
2017-08-11 10:54:48 -07:00
Andy
f64b8ad902
Add "preserveSymlinks" option ( #16661 )
...
* Add "preserveSymlinks" option
* Respond to PR comments
2017-08-11 10:03:21 -07:00
Ryan Cavanaugh
c27ee81341
Merge branch 'master' into extract-method-2
2017-08-10 17:02:14 -07:00
uniqueiniquity
c7d691dc15
Generalize to nested arrays and refactor
2017-08-10 13:27:24 -07:00
Ryan Cavanaugh
12403d9f70
Various fixes
2017-08-10 13:07:42 -07:00
Andy
fe3a05e89a
A function should be context-sensitive if its return expression is ( #17697 )
...
* A function should be context-sensitive if its return expression is
* Remove outdated comment
* Fix typo
2017-08-10 07:08:24 -07:00
Wesley Wigham
8fde483393
Add test for #16144 ( #17712 )
2017-08-10 00:10:36 -07:00
Nathan Shively-Sanders
85c10320db
Test:property access respects readonly index signature
2017-08-09 16:16:28 -07:00