Commit Graph
22 Commits
Author SHA1 Message Date
Paul van BrenkandZhengbo Li 52ec508e27 Code fix for missing imports (#11768)
* Add codefix for missing imports + tests

* Re-order and cleanup

* refactor

* make tests pass

* Make import specifier for new imports more comprehensive

* Fix existing import cases

* refactor

* Fix multiple import statement case

* add multiple code fixes and code action filtering and polishing

* not using the generic verify method for import fixes.

* Correct insert position for new imports

* improve the code action filtering logic

* Fix line ending issue

* cache where we can
2016-11-16 16:01:16 -08:00
Andy Hanson 1e92a9803b Merge branch 'master' into path_mapping_exact_extension 2016-11-11 14:11:40 -08:00
Andy Hanson a0e4ab94f1 Allow JS files 2016-11-11 13:59:13 -08:00
Andy Hanson 240b474ba3 Merge branch 'master' into path_mapping_exact_extension 2016-11-11 13:52:10 -08:00
Andy Hanson 6c7e1b6913 Merge branch 'master' into symlink3 2016-11-11 13:35:47 -08:00
Andy Hanson 823d385322 Add Push interface 2016-11-11 12:49:53 -08:00
Andy Hanson 8308ab34d8 When looking up modules in @types, only look for index.d.ts and package.json. 2016-11-11 12:49:53 -08:00
Andy Hanson 9c80909a90 Resolve symlinks for type reference directives too. 2016-11-09 08:08:10 -08:00
Andy Hanson 1c64615e32 Allow a path mapping to provide a file extension 2016-11-08 07:19:17 -08:00
Andy Hanson b6727ea582 Only resolve symlinks in node_modules 2016-11-03 07:53:10 -07:00
Vladimir MatveevandGitHub 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 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 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
Andy Hanson dc99355b5d Move most of resolveModuleNameForLsHost to lsHost 2016-10-25 08:02:16 -07:00
Andy Hanson 1d201c1add Merge branch 'master' into refactor_module_resolution 2016-10-19 09:20:45 -07:00
Andy Hanson f11dbc1ad1 Respond to PR feedback 2016-10-19 06:26:50 -07:00
Andy Hanson 7685e6af15 Forbid unused locals/parameters in compiler 2016-10-18 14:00:52 -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 4907fd1d44 Have classic module resolution use @types as a fallback 2016-10-06 06:01:18 -07:00
Vladimir Matveev 9c0e64d443 fix merge issues, restore tests 2016-09-27 14:02:10 -07:00
Vladimir Matveev 833a46c091 merge with origin/master 2016-09-27 10:22:41 -07:00
Zhengbo LiandGitHub 2b8d96371e Avoid circular references in core.ts (#10783) 2016-09-08 13:26:01 -07:00