639 Commits

Author SHA1 Message Date
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
Vladimir Matveev
f6b82d5e9f add a fallback logic for older versions of node that don't support 'homedir' (#11845)
* add a fallback logic for older versions of node that don't support 'homedir'

* try os.homedir first
2016-10-25 16:36:02 -07:00
Vladimir Matveev
72f81e2fc4 Merge pull request #11841 from Microsoft/vladima/report-typings-installer-pid
report typings installer process id to parent process
2016-10-25 15:37:56 -07:00
Vladimir Matveev
7890f63250 use unresolved imports as a source of used typings (#11828) 2016-10-25 15:24:21 -07:00
Vladimir Matveev
f48728af74 report typings installer process id to parent process 2016-10-25 13:18:57 -07:00
Andy Hanson
dc99355b5d Move most of resolveModuleNameForLsHost to lsHost 2016-10-25 08:02:16 -07:00
Vladimir Matveev
a477d1f7bb Merge pull request #11764 from Microsoft/vladima/11744
watch configuration files if they exist even if they cannot be parsed
2016-10-20 21:31:38 -07:00
Andy Hanson
ca970063a3 Just use notImplemented 2016-10-20 07:15:25 -07:00
Andy Hanson
5e7e5421fa Add noop, notImplemented, and notYetImplemented helpers 2016-10-19 14:21:48 -07:00
Andy Hanson
1d201c1add Merge branch 'master' into refactor_module_resolution 2016-10-19 09:20:45 -07:00
Andy Hanson
6814c1d883 Forbid unused locals/parameters anywhere 2016-10-19 08:27:49 -07:00
Andy Hanson
de876bdfc9 Use an ES5 target 2016-10-18 07:34:48 -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
Vladimir Matveev
121f51e552 Merge pull request #11694 from Microsoft/vladima/reload-tmp
allow reload from temp files
2016-10-17 23:20:39 -07:00
jramsay
68c485d9f9 Merge pull request #11686 from Microsoft/AddIsSemanticToGetDiagnosticsWorker
TSServer: Add isSemantic check to getDiagnosticsWorker
2016-10-17 22:10:59 -07:00
Jason Ramsay
deb3449077 Add getSyntacticDiagnostics unit test 2016-10-17 17:47:10 -07:00
Vladimir Matveev
05ebd1d5fb Merge pull request #11651 from Microsoft/vladima/literals-in-protocol
switch enums in protocol to unions of literal types
2016-10-17 15:46:55 -07:00
Jason Ramsay
b71e8a2167 Add isSemantic check to getDiagnosticsWorker 2016-10-17 13:11:13 -07:00
Andy Hanson
4c5a728314 Don't use ternary operator 2016-10-17 10:27:12 -07:00
Andy Hanson
8a2d16134d Remove unnecessary assert 2016-10-17 06:11:00 -07:00
Zhengbo Li
a1cbfcae4b Add missing trigger file (#11641)
* Add missing trigger file property for config file diags

* Add test
2016-10-14 20:50:12 -07:00
Yui
cd04aa9995 Merge pull request #11541 from Microsoft/master_11339
[Master] Fix 11339; using localeCompare cause exception in window 2012 dueto Intl
2016-10-14 09:36:41 -07:00
Vladimir Matveev
a09f00bb11 Merge pull request #11593 from Microsoft/vladima/port-11577
ports PR #11577 into master
2016-10-14 08:11:09 -07:00
Vladimir Matveev
dd26822cc0 Merge pull request #11594 from Microsoft/vladima/fix-11590
return result from SetCompilerOptionsForInferredProject request
2016-10-13 16:48:44 -07:00
Zhengbo Li
a6443e3e5a Avoid watching non-existing directories and fix null-exception (#11601)
* Avoid watching non-existing directories and fix null-exception

* Add test

* Move the fix to sys to cover tsc -w also
2016-10-13 15:39:09 -07:00
Vladimir Matveev
9c41e42d62 fix linter issues 2016-10-13 10:29:01 -07:00
Vladimir Matveev
224582c4f3 Merge pull request #11577 from Microsoft/vladima/configure-typing-acquisition
Disable automatic type acquisition with command line option, replace npm view with request to npm registry
2016-10-13 10:22:26 -07:00
Kanchalai Tanglertsampan
c03b04bd4f Only use localeCompare in CompareStrings 2016-10-12 14:26:30 -07:00
Vladimir Matveev
92b63fa725 Merge pull request #11550 from Microsoft/vladima/generate-protocol
Automatically generate protocol.d.ts by pulling in necessary dependencies
2016-10-12 14:18:19 -07:00
Andy Hanson
a567dacbe2 Merge branch 'master' into navtree 2016-10-12 08:09:12 -07:00
Paul van Brenk
9f73ae5903 Merge pull request #10185 from Microsoft/pvb/codeaction/api
The API to support codefixes
2016-10-11 19:51:18 -07:00
Zhengbo Li
460de66311 Turn on skipLibCheck for js-only inferred project and external project (#11399)
* Turn on skipLibCheck for js-only inferred project and external project

* avoid changing compiler options

* Update tests
2016-10-11 19:19:40 -07:00
Paul van Brenk
9b98d00155 Merge branch 'master' into pvb/codeaction/api 2016-10-11 17:31:20 -07:00
Paul van Brenk
dc516c050a Remove duplicate interface 2016-10-11 17:30:49 -07:00
Kanchalai Tanglertsampan
d7e33c90a2 Guard localeCompare function 2016-10-11 13:51:53 -07:00
Zhengbo Li
2671668d86 Remove cached resolvedModule result if the target file was deleted (#11460)
* Add test first for debugging

* Remove cached resolvedModule if the file was deleted

* Move the fix to lsHost

* Properly clean lastDeletedFile

* Remove unused builder API

* move the delete file check into module name valid check
2016-10-11 13:41:04 -07:00
Andy Hanson
9385b84c62 Add "navtree" and "navtree-full" server commands 2016-10-11 08:32:37 -07:00
Zhengbo Li
3b0515fd8b Send config file diagnonstics event even when no errors were found (#11285)
* emit config diagnostics event when no errors found

* Add tests for project service events
2016-10-10 16:38:08 -07:00
Vladimir Matveev
997acaec7a update documentation in protocol.d.ts (#11501)
update documentation in protocol.d.ts
2016-10-10 16:04:14 -07:00
Paul van Brenk
7c96c28863 Fix test failure 2016-10-07 15:55:33 -07:00
Paul van Brenk
a88ceb5597 Merge branch 'master' into pvb/codeaction/api 2016-10-07 14:02:24 -07:00
Paul van Brenk
a83a2b0de0 Codefixes in client for testing the server. 2016-10-07 13:58:53 -07:00
Paul van Brenk
77610f6e3e rename of the response body 2016-10-07 11:18:01 -07:00
Paul van Brenk
c29e9b7e4b PR feedback 2016-10-07 10:31:12 -07:00
Arthur Ozga
94d895587a Merge pull request #11328 from Microsoft/FixTripleSlashCompletions
Fix triple slash completions
2016-10-06 16:39:35 -07:00
Paul van Brenk
1e9b6536cf Fix linting issues 2016-10-06 13:59:54 -07:00
Paul van Brenk
75e1b80ad5 Use just the errorcode, without the TS prefix 2016-10-06 13:21:58 -07:00
Mohamed Hegazy
d72a0430ca Fix #11314: Expose insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces and insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces on protocol definiton (#11405) (#11410)
* Fix #11314: Expose `insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces` and `insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces` on protocol definiton

* Make options optional
2016-10-05 22:19:26 -07:00
Vladimir Matveev
59c0143934 do not run semantic classification on non-ts-or-tsx files 2016-10-05 14:49:16 -07:00