Commit Graph

18324 Commits

Author SHA1 Message Date
Sheetal Nandi 43d519a10e Merge pull request #17469 from Microsoft/disposeWatchedDirectoriesOnlyIfPresent
dispose the watched wild card directories only if present
2017-07-28 14:53:55 -07:00
Sheetal Nandi 88b8b67af4 Update the test 2017-07-28 14:53:25 -07:00
Sheetal Nandi 8fa204d314 Added | undefined to properties for watching that can be undefined 2017-07-28 10:31:59 -07:00
Daniel Rosenwasser 2ff333c71c Update LKG. v2.4.2 2017-07-28 09:21:45 -07:00
Sheetal Nandi 1ad411d99b dispose the watched wild card directories only if present 2017-07-27 16:30:22 -07:00
Daniel Rosenwasser 6105867bb0 Bumped version to 2.4.2. 2017-07-19 14:00:27 -07:00
Sheetal Nandi a34cf58560 Update the builder dependency graph only if it was created.
This makes sure that we dont create this graph just because project was updated
2017-07-19 12:14:05 -07:00
Andy 50abee3cd8 Never return undefined from getExportsOfModule (#17019) 2017-07-11 07:24:31 -07:00
Daniel Rosenwasser 8b2fe136f8 Update LKG. v2.4.1 2017-06-22 17:33:19 -07:00
Nathan Shively-Sanders 14d95edd33 Test:Block-scoped definition of Promise works
Previously, a block-scoped definition of Promise like `class Promise<T>` in
a script would cause a crash
2017-06-22 15:30:06 -07:00
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