Commit graph

647 commits

Author SHA1 Message Date
Zhengbo Li 4dc58dde38 Exclude js files in non-configured projects compile-on-save emitting (#12118)
* Exclude js files in non-configured projects CoS emitting

* remove unnecessary method
2016-11-10 14:12:24 -08:00
Vladimir Matveev 3ecb60146b synthesize complete import declaration for tslib (#12151) 2016-11-10 11:57:37 -08:00
Sheetal Nandi c87bce1119 Merge pull request #11978 from Microsoft/errorReportingInJsFile
Report all the js file errors and skip only the nodes that are not allowed in JS file
2016-11-10 10:37:16 -08:00
Sheetal Nandi 2eba10a25b Updated condition for more readability 2016-11-10 09:40:50 -08:00
Sheetal Nandi dd7f00f20b Parse the jsxFactory again in the checker instead of using cached value in the program 2016-11-10 08:54:13 -08:00
Sheetal Nandi 3d6950d023 When emitting use jsx factory entity expression if provided 2016-11-09 16:40:11 -08:00
Sheetal Nandi 06affa6672 Resolve first identifier of the jsxFactory as part of type check 2016-11-09 15:35:54 -08:00
Sheetal Nandi f7bac98948 Verify that jsxFactory is either identifier or qualified name 2016-11-09 14:32:42 -08:00
Sheetal Nandi 4b8a55793a Add support for taking in jsxFactory option and report errors for invalid combinations 2016-11-09 12:23:59 -08:00
Sheetal Nandi 78bb276216 Merge branch 'master' into errorReportingInJsFile 2016-11-09 11:38:11 -08:00
Sheetal Nandi 6456325973 Handle abstract and const modifiers 2016-11-09 10:39:46 -08:00
Vladimir Matveev 9e3d6efb19 reduce set of files being watched, increase polling interval (#12054) (#12092) 2016-11-07 21:13:11 -08:00
Zhengbo Li 1c004bf317 Port #12027, #11980 and #11932 to master (#12037)
* add test for the fix for overwrite emitting error

* cr feedback
2016-11-03 21:13:41 -07:00
Vladimir Matveev ab75ea75d3 module resolution: prefer locally defined ambient modules, reuse resolutions to ambient modules from the old program (#11999)
module resolution: prefer locally defined ambient modules, reuse resolutions to ambient modules from the old program
2016-11-02 14:41:26 -07:00
Sheetal Nandi 06331b57de Report all the js file errors and skip only the nodes that are not allowed in js
Fixes #11800
2016-11-01 13:00:30 -07:00
Sheetal Nandi d896d3f8a9 Add test cases to report errors for decorators in js file 2016-11-01 11:05:09 -07:00
Andy e6f6a5e6f6 Merge pull request #11495 from Microsoft/includes_glob
Implicitly consider an extensionless file in "includes" to be a recursive directory glob
2016-10-31 13:56:10 -07:00
jramsay 980f9fd2a9 Merge pull request #11848 from Microsoft/AddJavaScriptSemanticErrorsToSyntacticErrors
Fix for #11719 - TSServer: JS files should display syntactic errors for TS syntax
2016-10-28 16:49:53 -07:00
Jason Ramsay 43bd2d8747 Changes from CR feedback 2016-10-27 16:38:59 -07:00
Andy Hanson 12f6dcefa1 Revert "Merge pull request #11354 from Microsoft/map4"
This reverts commit adfdae0dc4, reversing
changes made to aad663cebf.
2016-10-27 15:50:21 -07:00
Andy Hanson bcc0807198 Respond to PR comments 2016-10-27 13:14:56 -07:00
Andy Hanson 867093707b Merge branch 'master' into map4 2016-10-27 12:36:50 -07:00
Andy Hanson dec5f4b39a Merge branch 'master' into map4 2016-10-27 12:21:06 -07:00
Andy 231b5ac52d Merge pull request #11891 from Microsoft/jsx_resolution_diagnostic
Fix bug: Return a resolution diagnostic for a `.jsx` import if `--allowJs` is turned off
2016-10-27 12:05:59 -07:00
Andy 6f519d8a27 Merge pull request #11899 from Microsoft/optional_extension
Make `extension` property of `ResolvedModule` optional
2016-10-27 12:05:29 -07:00
Andy Hanson 0f8003fb39 Make extension property of ResolvedModule optional; introduce ResolvedModuleFull interface for when the extension is provided. 2016-10-27 11:35:20 -07:00
Andy a143f9788e Merge pull request #11889 from Microsoft/untyped_imports
Allow untyped imports
2016-10-27 11:32:21 -07:00
Andy f307948af0 Merge pull request #11893 from Microsoft/truthy_enum
Fix bug: We want to test for existence of the enum value, not whether it's non-zero
2016-10-27 09:03:16 -07:00
Andy Hanson 4937d9c8b4 Allow untyped imports 2016-10-27 08:54:19 -07:00
Andy Hanson 4e20882ac0 Fix: test for presence, not absence 2016-10-27 08:43:22 -07:00
Andy Hanson ed82fddb8c Fix bug: We want to test for existence of the enum value, not whether it's non-zero 2016-10-27 08:14:08 -07:00
Andy Hanson 91885266ac Remove a comment about a parameter that no longer exists 2016-10-27 08:09:59 -07:00
Andy Hanson 8448e741c9 Fix bug: Return a resolution diagnostic for a .jsx import if --allowJs is turned off 2016-10-27 08:08:02 -07:00
Andy Hanson c958c47ef5 Merge branch 'master' into map4 2016-10-26 11:05:51 -07:00
Andy Hanson 9130fbd731 Merge branch 'master' into refactor_module_resolution 2016-10-26 08:27:34 -07:00
Andy Hanson 07bb2582b6 Don't require resolvedTsFileName and resolvedJsFileName, just resolvedFileName and extension. Also, change search order to do all TS searching before searching for JS. 2016-10-26 08:13:58 -07:00
Jason Ramsay 1b16c0b94b For JavaScript files, we report semantic errors for using TypeScript-only constructs from within a JavaScript file as syntactic errors. 2016-10-25 18:09:04 -07:00
Vladimir Matveev 7890f63250 use unresolved imports as a source of used typings (#11828) 2016-10-25 15:24:21 -07:00
Andy Hanson 040942f2b2 Merge branch 'master' into includes_glob 2016-10-25 08:19:37 -07:00
Andy Hanson 1b15646c41 Simplify isImplicitGlob test 2016-10-25 08:13:07 -07:00
Ryan Cavanaugh 95670c6251 Perform a useful comparison. Fixes #11805 2016-10-24 10:14:41 -07:00
Andy Hanson 5e7e5421fa Add noop, notImplemented, and notYetImplemented helpers 2016-10-19 14:21:48 -07:00
Andy Hanson a11838215c Merge branch 'master' into map4 2016-10-19 13:16:55 -07:00
Andy Hanson 1d201c1add Merge branch 'master' into refactor_module_resolution 2016-10-19 09:20:45 -07:00
Andy Hanson 7c53a1deb2 Instead of getResolutionOrDiagnostic, use getResolutionDiagnostic and avoid using resolution.resolvedFileName if the diagnostic is defined. 2016-10-18 14:22:43 -07:00
Andy Hanson 7685e6af15 Forbid unused locals/parameters in compiler 2016-10-18 14:00:52 -07:00
Andy Hanson 64e8221a44 Use single concat call instead of repeated calls 2016-10-18 08:18:01 -07:00
Andy Hanson b557211a37 Return both ts and js results from module resolution, and don't have moduleNameResolver responsible for omitting files based on compiler options 2016-10-18 07:09:43 -07:00
Andy Hanson 7292f9f67e Merge branch 'master' into map4 2016-10-17 06:49:53 -07:00
Andrej Baran 17d60d5d8f Merged master into es2017-target 2016-10-15 08:31:22 +02:00