638 Commits

Author SHA1 Message Date
Andy Hanson
7079d0450e Fix duplicate function error 2016-11-09 09:12:43 -08:00
Andy Hanson
d559f7f17d Merge branch 'master' into symlink3 2016-11-09 09:11:25 -08:00
Andy Hanson
9c80909a90 Resolve symlinks for type reference directives too. 2016-11-09 08:08:10 -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
Andy Hanson
2eca0af91b Leave files from node_modules out when calculating getCommonSourceDirectory 2016-11-03 07:50:07 -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
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 adfdae0dc47db5ad8248d26929a7b31cb895a539, reversing
changes made to aad663cebf6a89f7029af57d8cb6a0a011854978.
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
Mohamed Hegazy
2920f82804 Add error reporting for using --noImplicitUseStrict with --options.alwaysStrict 2016-10-13 16:54:09 -07:00
Andrej Baran
a500fd9211 Merge branch 'master' into es2017-target 2016-10-13 14:02:54 +02:00
Andrej Baran
b871b5353c Favor use of ES2015 instead of ES6 2016-10-13 13:32:00 +02:00
Andy Hanson
e8c7224eac Merge branch 'master' into map4 2016-10-12 08:50:49 -07:00
Andy Hanson
14701e3067 Respond to some PR comments 2016-10-11 13:44:20 -07:00
Andy
d34916abf8 Merge pull request #11448 from Microsoft/fix_array_condition
Fix array conditional
2016-10-07 10:03:06 -07:00
Andy Hanson
a4f610df82 Inline calculation of resolvedPath 2016-10-07 08:41:23 -07:00
Andy Hanson
13a8dc11b0 Fix array conditional 2016-10-07 08:35:13 -07:00
Andy Hanson
aadcbcc083 Use native maps when they're available 2016-10-06 13:29:18 -07:00