Andy Hanson
2305c10a65
Fix lint errors
2017-03-17 13:54:18 -07:00
Andy Hanson
3bc125463b
Add more missing semicolons
2017-03-03 07:00:52 -08:00
Andy Hanson
5ea43c8ba3
Merge branch 'master' into semicolon
2017-03-01 08:09:59 -08:00
Mohamed Hegazy
e4d7dc44b7
Merge pull request #13461 from flekmatik/getDefaultTypeRoots-fix
...
Fixing default typeRoots on Windows
2017-02-15 14:32:36 -08:00
Ryan Cavanaugh
aec310996c
Language service extensibility
2017-02-14 13:35:16 -08:00
Andy Hanson
91421c8dbc
Fix "semicolon" lint rule options (was not enabled)
2017-02-10 12:24:10 -08:00
Andy Hanson
132fa7093e
Respond to comments
2017-01-26 14:26:49 -08:00
Andy Hanson
432808d50b
Allow package.json "main" to specify a directory
2017-01-25 07:31:24 -08:00
Richard Karmazín
7378b8af68
Fixing default typeRoots on Windows
...
Without this function ignores "\"
2017-01-13 12:55:59 +01:00
Andy Hanson
f0e1fd93f7
Merge branch 'master' into map5
2017-01-11 07:17:37 -08:00
Andy
c4a80b2e07
Merge pull request #13363 from Microsoft/lint
...
Fix linting
2017-01-09 10:11:23 -08:00
Andy Hanson
23fa422b59
String literal completions: Use call signature only if we are *immediately* in a call expression
2017-01-09 07:52:52 -08:00
Andy Hanson
c1b55a9e05
Fix linting
2017-01-09 06:58:07 -08:00
Andy Hanson
346a86582b
Merge branch 'master' into map5
2016-12-28 09:36:30 -08:00
Andy Hanson
f510897dbd
Remove "sparseArray" constructor function and just use array literals
2016-12-28 08:58:31 -08:00
Vladimir Matveev
11dd368ec0
do not report file lookups if containing folder is known to be missing ( #13187 )
...
* added missing '.' at the end of message
* do not report lookups if containing folder is known to be absent
2016-12-27 15:50:14 -08:00
Andy Hanson
9e33585a80
Merge branch 'master' into map5
2016-12-27 12:56:05 -08:00
Mohamed Hegazy
9a0d9d77aa
Check trace enabled befoe tracing
2016-12-22 15:14:13 -08:00
Vladimir Matveev
330cceda17
cache results of module resolution for non-relative module names ( #13047 )
...
* cache results of module resolution for non-relative module names
* use cache to short-circuit failures
2016-12-21 10:02:28 -08:00
Daniel Rosenwasser
6c60bfc4f0
Merge pull request #13072 from DanCorder/fix12218
...
Fix formatting for 'readonly' properties and linter error
2016-12-20 16:10:16 -08:00
Mohamed Hegazy
328a5ef2ba
Merge pull request #13024 from Microsoft/package_json_unsupported_extension
...
Skip files from package.json "main" or "types" if they have an unsupported extension.
2016-12-20 15:44:37 -08:00
Dan Corder
dc94264220
Fix issue 12218 and linter error
2016-12-20 22:32:37 +00:00
Andy Hanson
bf94a4ae41
Change function name
2016-12-20 12:39:56 -08:00
Vladimir Matveev
0649c2272c
cache per-folder module resolutions during construction of the program ( #13030 )
2016-12-19 13:48:45 -08:00
Andy Hanson
720a3bfa16
Skip files from package.json "main" or "types" if they have an unsupported extension.
2016-12-19 08:10:05 -08:00
Paul van Brenk
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 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 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 Li
2b8d96371e
Avoid circular references in core.ts ( #10783 )
2016-09-08 13:26:01 -07:00