t_
924117567a
Allow running in strict mode ( #16557 )
...
`arguments` can't be assigned in strict mode
2017-06-15 09:51:53 -07:00
Mohamed Hegazy
f49b00742a
Update LKG
2017-06-15 09:49:56 -07:00
Mohamed Hegazy
f1b0f59c9a
Update version to 2.4.1
2017-06-15 09:00:00 -07:00
Daniel Rosenwasser
ed9cde9845
Update LKG
2017-06-14 17:00:51 -07:00
Daniel Rosenwasser
3e72e52405
Updated version.
2017-06-14 16:55:07 -07:00
Nathan Shively-Sanders
1dd9e9b9e9
Add comment to new code in hasExcessProperties
2017-06-14 16:17:14 -07:00
Nathan Shively-Sanders
a7d7a4cedf
Use first declaration, not valueDeclaration
...
valueDeclaration is frequently not set
2017-06-14 16:17:08 -07:00
Nathan Shively-Sanders
0913ef66e6
Test:error span for spread prop in excess prop check
2017-06-14 16:17:00 -07:00
Nathan Shively-Sanders
b394182e19
Improve excess property check for spread property
...
Fall back to the assignment's declaration; don't use the property's
valueDeclaration because that is not useful when the property comes from
a spread. The fallback now happens when the property's valueDeclaration
does not have the object literal's valueDeclaration as an ancestor.
2017-06-14 16:16:52 -07:00
Sheetal Nandi
f4298f10ca
[release-2.4] Fixes the memory leak because of project and its corresponding script info even after project is removed ( #16538 )
...
* Dont create script snapshots for files that arent source files
* Cleanup script infos that are not part of any project when the project is closed or inferred projects are refreshed
Also dispose some pointers so that the closures get disposed with project and script infos
* Move the cleanup of script infos to next file open
This helps in reusing script infos even if the project is closed but next open recreates the same project
* Add comment for deletion of orphan script infos in file open
2017-06-14 15:59:27 -07:00
Sheetal Nandi
8101dc89b2
Merge pull request #16529 from Microsoft/completionWithMeaningReleaseBranch
...
[release-2.4] Filter completion list according to meaning of the location
2017-06-14 13:58:11 -07:00
Mohamed Hegazy
6c294726b4
Merge branch 'release-2.4' of https://github.com/Microsoft/TypeScript into release-2.4
2017-06-14 12:53:28 -07:00
Nathan Shively-Sanders
3cca4b99ce
Merge branch 'release-2.4' of https://github.com/Microsoft/TypeScript into release-2.4
2017-06-14 12:35:14 -07:00
Nathan Shively-Sanders
34700c67d9
Remove undefined from optional spread properties
...
Fixes #16509 by making the change from #15938 less strict. This is
technically a hole, but it's not as big a hole as before #15938 .
2017-06-14 12:33:04 -07:00
Sheetal Nandi
20515ce0ac
Encorporting feedback
2017-06-14 10:58:36 -07:00
Sheetal Nandi
c191abe5f4
Typos in test cases
2017-06-14 10:58:30 -07:00
Sheetal Nandi
5eca96c4d2
Completion list in the type expression should show types
2017-06-14 10:57:23 -07:00
Sheetal Nandi
dcac1df02e
Filter symbols based on the meaning at the location
2017-06-14 10:50:42 -07:00
Mohamed Hegazy
a393c92d69
Fix #16521 : mark thisArg as optional in typed array map function
2017-06-14 10:48:41 -07:00
Ron Buckton
5e36756da9
Switch to sameMap
2017-06-13 21:27:31 -07:00
Ron Buckton
afed54ae8a
Fix constructor instantiation with defaults
2017-06-13 21:27:17 -07:00
Ron Buckton
982ab1f59d
Fix grammar check for empty type argument list and compiler crash
2017-06-13 21:27:10 -07:00
Arthur Ozga
bdaeb63e55
Merge pull request #16495 from aozgaa/codeFixPrefixUnused2-port2.4
...
port #16309 (prefix unused with _) to release-2.4
2017-06-13 17:10:36 -07:00
Nathan Shively-Sanders
ca82cf13be
Test:correct parens around keyof in decl emit
2017-06-13 14:19:07 -07:00
Nathan Shively-Sanders
21166f4824
Add parentheses around keyof in declaration emit
...
When needed. Use InElementType flag to determine this.
2017-06-13 14:18:36 -07:00
Nathan Shively-Sanders
2a6575c36f
Test:declaration emit of optional parameter props
2017-06-13 14:05:40 -07:00
Nathan Shively-Sanders
97373898bc
Add isOptionalUninitializedParameterProperty
...
Improves declaration emit and code readability
2017-06-13 14:05:33 -07:00
Nathan Shively-Sanders
e8a5bd20ae
Use checker for decl emit:optional parameter props
...
Optional parameter properties create a property with a type that unions
with undefined when strictNullChecks is on. This needs to be reflected
in the generated declaration.
2017-06-13 14:05:23 -07:00
Ron Buckton
d5ac244306
Merge pull request #16496 from Microsoft/fix16417
...
Fix decorated class with extends in new class emit
2017-06-13 13:27:18 -07:00
Mohamed Hegazy
68e2a4561d
Simplify generic function call error reporting ( #16439 ) ( #16501 )
...
* Simplify error reporting for generic functions
* Accept new baselines
* Fix fourslash tests
2017-06-13 13:21:29 -07:00
Yui
acc4737f15
Merge pull request #16490 from Microsoft/release_portLSDynamicImport
...
[Release-2.4] Port basic language service support to release branch
2017-06-13 13:09:46 -07:00
Kanchalai Tanglertsampan
f3e3158928
Merge branch 'release-2.4' into release_portLSDynamicImport
2017-06-13 12:47:25 -07:00
Ron Buckton
7cf6fdb9df
Merge branch 'release-2.4' into fix16417
2017-06-13 12:44:54 -07:00
Yui
1b20d01de0
Merge pull request #16491 from Microsoft/release-2.4_runCI
...
[Release-2.4] Runt CI on release-2.4
2017-06-13 12:44:02 -07:00
Nathan Shively-Sanders
032439f7d8
Test @typedef in @typedef-only JS files
...
Previously there was nothing for the @typedef to attach to, so the
comment was never parsed. Now these comments attach to the EOF token.
2017-06-13 11:57:38 -07:00
Nathan Shively-Sanders
898c64b432
Add JSDoc to EOF token to catch missed @typedefs
2017-06-13 11:57:32 -07:00
Ron Buckton
d7fc3bcbfa
Fix class extends+decorator with new class emit
2017-06-13 11:49:15 -07:00
Arthur Ozga
db35c639eb
port #16309 (prefix unused with _) to release-2.4
2017-06-13 11:36:18 -07:00
Yui
e93d1963ee
Runt CI on release-2.4
2017-06-13 11:24:53 -07:00
Kanchalai Tanglertsampan
3a6838d3bb
Address PR
2017-06-13 10:49:39 -07:00
Yui T
70b01a9b65
Update baseline
2017-06-13 10:49:36 -07:00
Kanchalai Tanglertsampan
7d76486c15
Add fourslash rename, find-all-reference on imported property
2017-06-13 10:49:31 -07:00
Kanchalai Tanglertsampan
6842520cef
Implement LS on string-literal of dynamic import
2017-06-13 10:49:26 -07:00
Mohamed Hegazy
985682de03
Update LKG
2017-06-12 17:52:03 -07:00
Mohamed Hegazy
915b486e84
Update version
2017-06-12 17:51:24 -07:00
Mohamed Hegazy
a15a7ecee1
Merge branch 'master' into release-2.4
2017-06-12 17:44:50 -07:00
Nathan Shively-Sanders
3d8cf62846
Merge pull request #16463 from Microsoft/jsdoc-@template-in-scope-as-type-parameter
...
Jsdoc @template in scope as type parameter
2017-06-12 16:07:49 -07:00
Nathan Shively-Sanders
ecc211345a
Merge pull request #16465 from Microsoft/skip-non-null-assertion-for-reference-expr
...
Skip non-null assertion for references
2017-06-12 15:33:36 -07:00
Andy
6a8a6c34b4
getPossibleSymbolReferencePositions: Always use full start ( #16420 )
2017-06-12 15:24:31 -07:00
Andy
8b55675cb4
Simplify isDeclarationNameOrImportPropertyName ( #16421 )
2017-06-12 15:23:45 -07:00