Commit Graph

114 Commits

Author SHA1 Message Date
Andy
e7dc2a67ca Enable "object-literal-shorthand" lint rule (#16987) 2017-07-07 07:26:58 -07:00
Andrew Casey
ac72803bb2 Merge pull request #16684 from amcasey/Vsts434619
Watch for the creation of missing files
2017-06-29 13:41:18 -07:00
Andrew Casey
569ecabb0a Address PR feedback
Make Program.getMissingFilePaths required

Assume getMissingFilePaths always returns a defined value

Make getMissingFilePaths internal

Replace nullable-bool with enum

Update type to reflect possibility of undefined

Use deepEqual to simplify tests

Make condition const

Don't bother cleaning up map before freeing it

Switch from foreach to for-of to simplify debugging

Use a Map, rather than a FileMap, to track open FileWatchers

Fix compilation errors

Introduce and consume arrayToSet

Fix lint warnings about misplaced braces

Delete incorrect comment

Delete from map during iteration

Eliminate unnecessary type annotations
2017-06-29 11:29:19 -07:00
Andy
179a3e10b5 Handle depth in all readDirectory implementations (#16646) 2017-06-29 11:04:33 -07:00
Andrew Casey
4863ada22c Track missing files
1. Expose missing files from the `Program`.
2. In `tsc --watch` and `tsserver`, add file watchers to missing files.
3. When missing files are created, schedule compilation (tsc) or refresh
the containing projects (tsserver).
2017-06-29 10:39:31 -07:00
Mine Starks
3bd5df7577 Set typings cache location per TS version 2017-06-08 13:33:24 -07:00
Andrew Casey
e3c4a7031d Reuse already-computed modification time 2017-06-06 16:35:11 -07:00
William Orr
b62e1b5745 Use unix cache location on the major BSDs (#16187) 2017-06-01 18:27:20 -07:00
Andy
2412f8c6cf Allow configurable npmLocation for typingsInstaller (#16084)
* Allow configurable npmLocation for typingsInstaller

* Undo "export class" changes

* Add log for npmLocation

* Log whether '--npmLocation' was provided
2017-05-26 07:06:11 -07:00
Ryan Cavanaugh
ab3ffa22da Add flag to allow local plugin loading 2017-05-17 19:52:57 -07:00
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
Matt Bierner
6fd8653847 Fix globalPlugins TSServer Flag
**Bug**
globalPlugins flag not being threaded through IOSession object properly

**Fix**
Pass these flags to superclass in IOSession
2017-04-17 14:05:49 -07:00
Andy Hanson
c0d26e81f1 Merge branch 'master' into resolveJavaScriptModule 2017-04-14 10:15:30 -07:00
Ryan Cavanaugh
3cc379c3c0 Fix merge 2017-04-13 16:16:57 -07:00
Andy Hanson
7320891933 boolean-trivia lint rule: Lint for null/undefined too 2017-04-07 13:13:39 -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
Ryan Cavanaugh
e3bb5d3f28 Update linting to avoid typechecking for booleanTriviaRule 2017-04-04 22:34:51 -07:00
Arthur Ozga
7e03429a8e enforce triple-equals 2017-04-04 15:51:13 -07:00
Ryan Cavanaugh
f1339ecb8e Remove trailing WS 2017-03-24 16:07:23 -07:00
Mine Starks
0c1642a8b7 Allow specifying location of typingSafeList.json 2017-03-20 16:16:38 -07:00
Andy Hanson
2305c10a65 Fix lint errors 2017-03-17 13:54:18 -07:00
Vladimir Matveev
17cb68cbbf send error if obtaining of types-registry package failed (#14573) 2017-03-10 10:34:01 -08:00
Vladimir Matveev
77c2a1d20d allow passing --logFile and --logVerbosity parameter to tsserver (#14566) 2017-03-09 15:25:44 -08: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
Vladimir Matveev
8c54bbaa04 use separate process to probe if drive is safe to watch (#14098)
use dedicated process to determine if it is safe to watch folders
2017-02-16 10:32:01 -08:00
Ryan Cavanaugh
86cc405286 Fix downstream use 2017-02-14 13:45:19 -08:00
Ryan Cavanaugh
aec310996c Language service extensibility 2017-02-14 13:35:16 -08:00
Vladimir Matveev
81f4e38643 Enable per-request cancellation (#12371)
enable -per-request cancellation

* restore request for deferred calls

* add tests

* introduce MultistepOperation

* (test) subsequent request cancels the preceding one
2017-02-14 13:18:42 -08:00
Andy Hanson
91421c8dbc Fix "semicolon" lint rule options (was not enabled) 2017-02-10 12:24:10 -08:00
Kagami Sascha Rosylight
2a941a7222 inline length 2016-12-20 03:12:35 +09:00
Kagami Sascha Rosylight
27a60e4580 fix linting errors 2016-12-18 15:44:54 +09:00
Vladimir Matveev
225d6d6aef use XDG base directory compatible cache location (#12676)
* use XDG base directory compatible cache location

* use ~/Library/Caches on darwin
2016-12-05 13:40:56 -08:00
Vladimir Matveev
1418fd170d send begin/end notifications when installing types packages (#12551) 2016-11-29 10:14:22 -08:00
jramsay
855431a943 Merge pull request #12373 from Microsoft/RenameTypingOptions
Rename typingOptions.enableAutoDiscovery to typeAcquisition.enable
2016-11-22 17:22:30 -08:00
Zhengbo Li
110c3ac6ac Add locale options to tsserver (#12369)
* add locale options to tsserver

* make sys an argument

* fix mistakes and address code review
2016-11-21 10:30:38 -08:00
András Parditka
c96bc89982 Fix issue #12260.
Fixed tsserver crashing on Android (Termux).
2016-11-19 11:28:11 +01:00
Jason Ramsay
5a9451ae23 Rename typingOptions.enableAutoDiscovery to typeAcquisition.enable 2016-11-18 18:14:32 -08:00
Vladimir Matveev
4c2474463c ports #12237, #12258 and #12259 into master (#12274)
* treat failures to resolve module name as missing packages (#12237)

* added extra check to prevent multiple installation of the same typing, added version field to telemetry event (#12258)

* added extra check to prevent multiple installation of the same typing, added version field to telemetry event

* use ts.version

* switch to execSync to ensure that no install orders are interleaved (#12259)

* Make sure version is public

* Update file with version string for nightly release
2016-11-15 12:53:46 -08:00
Vladimir Matveev
f11e8a3c69 add 'installSuccess' flag to telemetry, cache misses if npm install fails (#12163)
* add 'installSuccess' flag to telemetry, cache misses if npm install fails

* fix typo
2016-11-14 14:10:22 -08:00
Vladimir Matveev
4ffdea838a Ports #12051 and #12032 into master (#12090)
* use local registry to check if typings package exist (#12014)

use local registry to check if typings package exist

* enable sending telemetry events to tsserver client (#12035)

enable sending telemetry events
2016-11-07 13:36:08 -08: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
6814c1d883 Forbid unused locals/parameters anywhere 2016-10-19 08:27:49 -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
Vladimir Matveev
93b8df7c5d Addresses #11348: Could the tsserver add process.noAsar = true; (#11351) (#11360) 2016-10-04 12:11:59 -07:00
Vladimir Matveev
833a46c091 merge with origin/master 2016-09-27 10:22:41 -07:00