Commit Graph

13135 Commits

Author SHA1 Message Date
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
f1b0f59c9a Update version to 2.4.1 2017-06-15 09:00:00 -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
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
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
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
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
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
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
Kanchalai Tanglertsampan
3a6838d3bb Address PR 2017-06-13 10:49:39 -07:00
Kanchalai Tanglertsampan
6842520cef Implement LS on string-literal of dynamic import 2017-06-13 10:49:26 -07:00
Mohamed Hegazy
915b486e84 Update version 2017-06-12 17:51:24 -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
Nathan Shively-Sanders
93bdd3cb39 Fix reference to isTypeParameterDeclaration in services
Fixes build break
2017-06-12 15:07:04 -07:00
Nathan Shively-Sanders
55beb14bca Checking references skips assertions+parentheses 2017-06-12 14:40:01 -07:00
Andy
fbcddb61e2 Don't bind JSDoc namespace in a TS file (#16416) 2017-06-12 14:35:35 -07:00
Andy
050126c1b6 Rename isTypeParameter to isTypeParameterDeclaration (#16422) 2017-06-12 14:31:01 -07:00
Nathan Shively-Sanders
024ab094b3 Update jsdoc of new function 2017-06-12 14:27:43 -07:00
Nathan Shively-Sanders
abc9e687ac Consolidate getting type parameter declarations
Create getEffectiveTypeParameterDeclarations in utilities.ts
2017-06-12 14:23:47 -07:00
Nathan Shively-Sanders
eda7978dd1 Cleanup getTypeParametersFromDeclaration et al 2017-06-12 14:06:46 -07:00
Anders Hejlsberg
dde60bb624 Merge pull request #16368 from Microsoft/stricterGenericChecks
Stricter generic signature checks
2017-06-12 13:56:21 -07:00
Nathan Shively-Sanders
1b585dd503 Type params introduced by @template are in scope
The test to make sure that type parameters are in scope for
instantiation previously ignored type parameters created by `@template`.
Now it correctly says that they are in scope.
2017-06-12 13:55:07 -07:00
Anders Hejlsberg
dc28aaa132 Add --noStrictGenericChecks compiler option 2017-06-12 13:09:01 -07:00
Andy
7fb821e45b Support completions in destructuring in for-of (#16454) 2017-06-12 12:12:51 -07:00
Andy
2748b3b334 Add isForInOrOfStatement utility (#16455) 2017-06-12 11:08:41 -07:00
Andy
44d5c44cb5 Document highlights for a JSX tag should just be the matching tag, not all references (#16453) 2017-06-12 11:08:21 -07:00
Anders Hejlsberg
f81925992c Intersection with 'never' type always produces 'never' 2017-06-11 14:54:36 -07:00