58 Commits

Author SHA1 Message Date
Andy
0b0a2d070b Merge pull request #15039 from Microsoft/resolveJavaScriptModule
Refactor how we (internally) expose JS module resolution
2017-05-08 10:52:17 -07:00
Arthur Ozga
cbbf6f8847 Merge branch 'master' into tripleEquals 2017-04-17 15:57:51 -07:00
Mohamed Hegazy
4e29b1883d Merge pull request #15051 from Microsoft/at_types
Support @types module resolution from scoped packages
2017-04-17 10:08:15 -07:00
Andy Hanson
c0d26e81f1 Merge branch 'master' into resolveJavaScriptModule 2017-04-14 10:15:30 -07:00
Andy Hanson
ed5eca2b7b boolean-trivia lint rule: Enforce space between comment and argument 2017-04-11 09:44:58 -07:00
Andy Hanson
e9f95e2296 Only trace if traceEnabled 2017-04-10 09:06:26 -07:00
Andy Hanson
8ec593aec2 Support @types module resolution from scoped packages 2017-04-06 08:05:30 -07:00
Andy Hanson
4a3b38b274 Refactor how we (internally) expose JS module resolution
Also, provide a useful error if resolution fails.
2017-04-05 15:33:01 -07:00
Arthur Ozga
3bdec6943e Merge branch 'master' into tripleEquals 2017-04-05 11:51:21 -07:00
Arthur Ozga
7e03429a8e enforce triple-equals 2017-04-04 15:51:13 -07:00
Andy Hanson
73cab09608 Enable jsdoc-format lint rule 2017-04-03 14:39:19 -07:00
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