7520 Commits

Author SHA1 Message Date
Mohamed Hegazy
0735f465f0 Add support for list types
consolidate typings options and commmandline option parsing from json files

Fix
2016-03-14 15:28:49 -07:00
Mohamed Hegazy
3adab0cec3 revert 2016-03-14 14:42:43 -07:00
Vladimir Matveev
2b2092b1a2 find module augmentations in preprocessor 2016-03-14 13:30:38 -07:00
Vladimir Matveev
e0a79bcd63 don't check that return statement has expression in constructors 2016-03-13 15:31:55 -07:00
Anil Anar
8e35cdd52c add missing conditional check 2016-03-12 21:16:43 +01:00
Anil Anar
cde06b6585 Fix #7397: Remove error checks for noEmit and out* compiler options combined. 2016-03-12 19:20:18 +01:00
Bill Ticehurst
59d5df0a56 AllowJS files in tsserver when no project is given
(cherry picked from commit 16d76561603478a3f4648ee483892e7807e88c49)
2016-03-10 12:59:39 -08:00
Ryan Cavanaugh
7d372bf6dc Merge pull request #7264 from RyanCavanaugh/umd
UMD support
2016-03-10 10:59:45 -08:00
Vladimir Matveev
489bf921ff Merge pull request #7464 from Microsoft/capturedLetConstInDestructuringAssignment
correctly recognize captured loop variables in destructuring assignment
2016-03-10 10:17:19 -08:00
Vladimir Matveev
7344d9ca47 correctly recognize captured loop variables in destructuring assignment 2016-03-10 09:59:09 -08:00
Bill Ticehurst
bda5737c50 Merge pull request #7455 from Microsoft/port7249
Ports CommonJS module fix #7249
2016-03-10 09:22:19 -08:00
Zhengbo Li
e151d49e7f Merge pull request #7307 from zhengbli/fixFormatOnEnter
Avoid removing indentation on a new line as trailing white spaces
2016-03-10 09:18:56 -08:00
Bill Ticehurst
9924e0a801 Addressed feedback
(cherry picked from commit fa6db1b8c95e28209a4147838dc7fd2ca433b9df)
2016-03-09 19:13:14 -08:00
Bill Ticehurst
3ebf0fc383 Fixed default import from export equals
(cherry picked from commit c4a10cfcdd51f831c3039e305c1c465a85c93b0b)
2016-03-09 19:13:14 -08:00
Bill Ticehurst
b760fc0ae0 Fixed es2015 imports from export=
(cherry picked from commit 9e46c180b4063e56eb947928615a3ebd46ecbe5e)
2016-03-09 19:13:13 -08:00
Bill Ticehurst
4ec4ce814d Updated binding for module.exports
(cherry picked from commit 62bf4aefe23aeb67513af1b4961288244e9716a1)
2016-03-09 19:13:13 -08:00
Ryan Cavanaugh
c72f1c354b Reuse existing var 2016-03-09 16:08:08 -08:00
Yui
05baf3dac7 Merge pull request #7356 from Microsoft/fix7354
Concat declaration error so we report them
2016-03-09 13:02:45 -08:00
Vladimir Matveev
5d5fee2ef1 Merge pull request #7450 from Microsoft/noImplicitReturnsInAsync
unwrap promised typed in async function before doing 'noImplicitRetur…
2016-03-09 12:42:10 -08:00
Anders Hejlsberg
614afb740d Merge pull request #7448 from Microsoft/optimizeInstantiation
Skip unnecessary instatiation of anonymous types
2016-03-09 12:40:32 -08:00
Vladimir Matveev
907ce8fb38 unwrap promised typed in async function before doing 'noImplicitReturns' check 2016-03-09 11:23:55 -08:00
Ryan Cavanaugh
ac147b18a6 Merge pull request #7442 from Victorystick/fix-property-shorthand-emit
Fix shorthand properties for non-es6 module formats
2016-03-09 10:30:58 -08:00
Ryan Cavanaugh
2875326735 Use existing function to resolve export= declarations 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh
3d948be4c6 Support module augmentation 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh
132d75c267 Support UMD when targeted module uses export = 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh
34cf10542c Lint 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh
887adb0146 Move checks from checker to binder 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh
e9f4bef3ac Address CR feedback 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh
44aa7388ea UMD support 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh
5dbf252dc5 Fix duplicate errors in JSDoc function types with anon parameters
Fixes #6993
2016-03-09 09:18:54 -08:00
Anders Hejlsberg
bf97250306 Skip unnecessary instatiation of anonymous types 2016-03-09 09:14:55 -08:00
Oskar Segersvärd
ccd5352eb8 System doesn't have direct identifier access in TS's generated code. 2016-03-09 12:13:27 +01:00
Oskar Segersvärd
d742ca50f4 Fix shorthand properties for non-es6 module formats 2016-03-09 11:22:47 +01:00
Mohamed Hegazy
7acf58ba52 Handel module augmentation with export= var + uninstantiated module 2016-03-08 17:16:19 -08:00
Daniel Rosenwasser
01c329c05e Merge pull request #7396 from mattmccutchen/issue7359
Expose ts.isExternalModule as public API.
2016-03-07 10:15:06 -08:00
Matt McCutchen
49172207bf Expose ts.isExternalModule as public API.
Fixes #7359
2016-03-04 18:45:42 -05:00
Mohamed Hegazy
a5354608fc Merge pull request #7392 from Microsoft/declarationEmitFixes
Declaration emit fixes
2016-03-04 15:35:43 -08:00
Mohamed Hegazy
15640492c4 Code review comments 2016-03-04 14:21:31 -08:00
Mohamed Hegazy
15f07e6231 Fix #4506: Remove assert to allow for invalid patterns already flagged erlier by the checker 2016-03-03 23:01:46 -08:00
Mohamed Hegazy
3bb2c57264 Fix #3810: Handel expressions in extends clauses 2016-03-03 22:35:30 -08:00
Mohamed Hegazy
c98c763243 Fix #5651: Get the correct meaning for expressions in extends clauses 2016-03-03 21:47:11 -08:00
Ryan Cavanaugh
311f8dd7d3 Merge pull request #7309 from RyanCavanaugh/fix6878
Support JSDoc on class / obj. literal getters
2016-03-03 15:50:15 -08:00
Mohamed Hegazy
baa040115e Fix #7173: Widen the type do the defualt export expression before writing it out. 2016-03-03 15:42:47 -08:00
Jason Ramsay
ae2b7c2aa2 Removing cachePath from discoverTypings and DiscoverTypingsInfo.
With the move to using the packageNameToLocation map it is no longer required.
2016-03-03 15:17:52 -08:00
Mohamed Hegazy
0cba37d5b2 Merge pull request #7358 from martine/empty-return
in noImplicitReturns mode, also disallow "return;"
2016-03-03 13:56:19 -08:00
Vladimir Matveev
744e51047e Merge pull request #7373 from Microsoft/limitInferenceDepth
set the maximum depth to explore during type inference
2016-03-03 12:18:49 -08:00
Evan Martin
5132ea64ea in noImplicitReturns mode, also disallow "return;"
In --noImplicitReturns mode, if a function specifies a return type,
disallow empty "return;" statements.

Fixes #5916.
2016-03-03 12:18:23 -08:00
Vladimir Matveev
1589e4f57e set the maximum depth to explore during type inference 2016-03-03 10:47:21 -08:00
Mohamed Hegazy
30a6a33259 Fix #7362: check for --watchFile in tsconfig.json as well as on the commandline 2016-03-03 10:18:33 -08:00
Kanchalai Tanglertsampan
70d267419b Concat declaration error so we report them 2016-03-02 17:13:51 -08:00