Commit Graph

178 Commits

Author SHA1 Message Date
Sheetal Nandi
ae8637c99f Merge branch 'master' into watchOptions 2018-03-03 10:51:59 -08:00
Andy
a564912d9a Apply 'no-unnecessary-qualifier' lint rule (#22009) 2018-03-01 14:20:18 -08:00
Sheetal Nandi
9a160f2079 Merge branch 'master' into watchOptions 2018-02-21 10:44:12 -08:00
Benjamin Lichtman
f989ef7261 Merge pull request #21004 from uniqueiniquity/updateATA
Enable typings cache entries to expire and be updated
2018-02-09 14:17:26 -08:00
Sheetal Nandi
ca4af4f36c Merge branch 'master' into watchOptions 2018-02-05 13:07:12 -08:00
Sheetal Nandi
659424e33f Log more info about platform for further diagnosis 2018-01-29 16:02:16 -08:00
Sheetal Nandi
976f330044 Watch based on dynamic polling priority frequency queue 2018-01-17 12:59:09 -08:00
uniqueiniquity
e72ea6f7b1 Update installed types if older than those listed in the registry 2018-01-11 12:58:22 -08:00
Matt Bierner
8ed4e666e8 Log TS Server version and process args (#20847)
* Print TS Server version and args in logs

Fixes #18867

Adds basic logging of the version of tsserver being run and the full command line arguments used to run it

* Don't check log level for logging versions/args
2018-01-04 15:18:41 -08:00
Andrew Casey
eb5797fd36 Merge pull request #20211 from amcasey/GH20084
Update project on PackageInstalledResponse
2017-11-22 10:21:33 -08:00
Andrew Casey
5ed31cff8c Use stricter types for event bodies 2017-11-21 16:38:58 -08:00
Andrew Casey
f483495408 Use {} instead of any to improve type checking 2017-11-21 16:24:05 -08:00
Andrew Casey
35545d4a0a Update project on PackageInstalledResponse
As with `SetTypings`, new typings have been installed so the project
should be updated and the client should be notified (via event).

Changed PackageInstalledResponse from "event" to "action" for the sake
of explicitness.

Fixes #20084.
2017-11-21 15:59:46 -08:00
Andrew Casey
39e6a00054 Unswap arguments 2017-11-21 15:59:45 -08:00
Arthur Ozga
d2cc4f15be test overriding Session.event 2017-11-17 19:48:57 -08:00
Arthur Ozga
890820b528 cleanup NodeTypingsInstaller 2017-11-16 19:19:05 -08:00
Arthur Ozga
8b0d3ab318 remove comments 2017-11-16 19:10:38 -08:00
Arthur Ozga
c098a5cf83 type event callback correctly 2017-11-16 19:06:08 -08:00
Arthur Ozga
49d92d844b defer callback and remove handler object 2017-11-16 18:15:39 -08:00
Arthur Ozga
5c2fea4d4e make eventSender required for TypingsInstaller 2017-11-15 19:49:34 -08:00
Arthur Ozga
a7822c550d expose just eventSender 2017-11-15 19:39:02 -08:00
Arthur Ozga
d6c3a15ea6 Move event into IoSession 2017-11-15 18:51:25 -08:00
Arthur Ozga
005c86340f move socketSender to IOSession 2017-11-15 13:12:48 -08:00
Arthur Ozga
930be75e0c lint 2017-11-14 18:14:15 -08:00
Arthur Ozga
bf8f9be677 expose event to overwrite in SessionOptions
* need to retain eventPort and canUseEvents arguments and functionality for backwards
compatibility.
2017-11-14 16:42:18 -08:00
Arthur Ozga
1746f4b3d3 factor out socket-event-sending 2017-11-14 15:10:44 -08:00
Arthur Ozga
9f991d375a cleanup 2017-11-08 23:05:04 -08:00
Arthur Ozga
23da1cf822 send all events through common stream 2017-11-08 21:59:44 -08:00
Andy
40efd1b3bd Apply 'object-literal-key-quotes' tslint rule (#19737)
* Apply 'object-literal-key-quotes' tslint rule

* Convert to "consistent-as-needed"
2017-11-06 18:13:20 -08:00
Andy
381ca45787 Use an enum for Msg (#19773) 2017-11-06 18:10:02 -08:00
Andy
cd9dbe694f Enable 'only-arrow-functions' lint rule (#19717) 2017-11-03 15:08:50 -07:00
Andy
f67a9ba96e Apply 'interface-name' lint rule (#19695) 2017-11-02 17:20:18 -07:00
Andrew Casey
bc2a048a39 Handle --debug-brk and --inspect-brk when launching TypingsInstaller 2017-10-26 16:42:47 -07:00
Andy
1f282f19e0 Fix "noStringLiteral" lint errors (#19310) 2017-10-19 08:15:48 -07:00
Andy
0f55f4a701 Use Promise instead of PromiseLike (#19305) 2017-10-18 16:04:42 -07:00
Andy
d05443bb1d Add quickfix and refactoring to install @types packages (#19130)
* Add quickfix and refactoring to install @types packages

* Move `validatePackageName` to `jsTyping.ts`

* Remove combinePaths overloads

* Respond to code review

* Update api baselines

* Use native PromiseConstructor

* Return false instead of undefined

* Remove getProjectRootPath

* Update api
2017-10-17 15:04:09 -07:00
Andy
d0c4d13fe2 In tsserver, indent logged JSON (#19080) 2017-10-17 11:34:59 -07:00
Sheetal Nandi
52d7c7278d Add comment about swallowing exception 2017-10-10 17:16:53 -07:00
Sheetal Nandi
aa22c56282 Swallow the directory watcher exceptions 2017-10-09 18:04:14 -07:00
Sheetal Nandi
23acff5bc8 Merge branch 'master' into watchImprovements 2017-09-25 16:18:26 -07:00
Andrew Casey
965a4d5aeb Restructure handling to TI messages to enforce exhaustiveness 2017-09-15 11:33:05 -07:00
Andrew Casey
f3411d4361 Only decrement activeRequestCount on SetTypings responses
InvalidateCache responses are triggered by file watchers, rather than by
requests.
2017-09-14 15:45:26 -07:00
Sheetal Nandi
cf72f2aaf0 Merge branch 'master' into watchImprovements 2017-09-13 17:35:21 -07:00
Andy
2a70bf5158 Don't count a write-only reference as a use (#17752)
* Don't count a write-only reference as a use

* Split isWriteAccess to isWriteOnlyAccess and isReadOnlyAccess

* Update "unusedParameterUsedInTypeOf" to use "b"

* Update diagnostic messages: "is never used" -> "its value is never read"

* Use a WriteKind enum

* Rename enum and move documentation to enum members
2017-09-13 09:02:33 -07:00
Sheetal Nandi
fdb104b242 Merge branch 'master' into watchImprovements 2017-09-11 13:49:36 -07:00
Sheetal Nandi
680994ea42 Better log for update graph and delay operations 2017-09-06 16:34:31 -07:00
Andrew Casey
9692ce86db Add explanatory comment 2017-09-06 15:46:59 -07:00
Andrew Casey
0b1bad8421 Fix lint issues 2017-09-06 15:44:00 -07:00
Andrew Casey
482e802e83 Limit the number of unanswered typings installer requests
If we send them all at once, we (apparently) hit a buffer limit in the
node IPC channel and both TS Server and the typings installer become
unresponsive.
2017-09-05 18:08:50 -07:00
Ryan Cavanaugh
43b8ce664c Merge 2017-08-22 14:31:49 -07:00