Commit Graph

18314 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
a8846bf12c Skip block scope check with no error location
An example of a symbol with no error location is a global symbol like
Promise.
2017-06-22 15:29:57 -07:00
Yui
44f2336279 Merge pull request #16633 from Microsoft/release-2.4_fixIncrementalParsing
[Release 2.4] Port fix incremental parsing PR
2017-06-19 17:15:02 -07:00
Kanchalai Tanglertsampan
4875a2756f Add tests 2017-06-19 16:49:38 -07:00
Yui T
15ef20db3c Set the structureReused to be safemoudles when dynamic import change 2017-06-19 16:49:35 -07:00
Yui T
6d3308387d Add tests 2017-06-19 16:49:31 -07:00
Yui T
11b9f6e89d Wip-fix incremental parsing 2017-06-19 16:49:27 -07:00
Andy
2721fd4f5d In TypeScript code, never bind JSDoc normally, just set parent pointers (#16555) (#16561) 2017-06-16 20:43:32 -07:00
Mohamed Hegazy
0968ed97ad Revert string enum changes (#16569)
* Revert "Convert Extension to a string enum (#16425)"

This reverts commit 09321b3834.

* Revert "Also convert ClassificationTypeNames and CommandTypes/CommandNames"

This reverts commit f94818da36.

* Revert "Make ScriptElementKind and HighlightSpanKind string enums"

This reverts commit b162097c3c.

* Revert "Make ScriptElementKind and HighlightSpanKind string enums"

This reverts commit b162097c3c.

# Conflicts:
#	lib/lib.d.ts
#	lib/lib.es2016.full.d.ts
#	lib/lib.es2017.full.d.ts
#	lib/lib.es5.d.ts
#	lib/lib.es6.d.ts
#	lib/lib.esnext.full.d.ts
#	lib/tsc.js
#	lib/tsserver.js
#	lib/tsserverlibrary.d.ts
#	lib/tsserverlibrary.js
#	lib/typescript.d.ts
#	lib/typescript.js
#	lib/typescriptServices.d.ts
#	lib/typescriptServices.js
#	lib/typingsInstaller.js

* Update LKG

* Revert "Make CommandTypes a const enum and use `allCommandTypes` for unit test"

This reverts commit f6240cb6f9.
2017-06-15 14:19:03 -07:00
Mohamed Hegazy
096f8ccf74 Update LKG 2017-06-15 10:19:50 -07:00
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