Commit Graph
170 Commits
Author SHA1 Message Date
Matt BiernerandMohamed Hegazy 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 CaseyandGitHub 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
AndyandGitHub 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
AndyandGitHub 381ca45787 Use an enum for Msg (#19773) 2017-11-06 18:10:02 -08:00
AndyandGitHub cd9dbe694f Enable 'only-arrow-functions' lint rule (#19717) 2017-11-03 15:08:50 -07:00
AndyandGitHub 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
AndyandGitHub 1f282f19e0 Fix "noStringLiteral" lint errors (#19310) 2017-10-19 08:15:48 -07:00
AndyandGitHub 0f55f4a701 Use Promise instead of PromiseLike (#19305) 2017-10-18 16:04:42 -07:00
AndyandGitHub 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
AndyandGitHub 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
AndyandGitHub 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
Sheetal Nandi 6227a36ff0 In Server when polling the file stat's do not send changed event in case the file doesnt exist. 2017-08-22 11:21:16 -07:00
AndyandGitHub ade3b565ae Revert public API changes to logger (#17899) 2017-08-18 11:20:07 -07:00
Ron BucktonandGitHub 360dc914c3 Merge pull request #17602 from Microsoft/multiInferredProjects
Adds support for inferred project isolation by projectRootPath
2017-08-11 16:06:49 -07:00
AndyandGitHub d99a492ddd Simplify server logger (#17271)
* Simplify server logger

* Move function printProjects out of inner closure
2017-08-08 11:22:22 -07:00
AndyandGitHub f69ce5c0c8 Convert two arrays to readonly (#17685) 2017-08-08 10:54:18 -07:00
AndyandGitHub a9a30d76fb Fix parsing of globalPlugins and pluginProbeLocations: Don't include empty string (#17143) 2017-08-08 07:55:03 -07:00
AndyandGitHub 382785a528 Fix logging of module resolution errors (#17144) 2017-08-08 07:54:08 -07:00
Ron Buckton fa7f3e85fe Adds support for inferred project isolation by projectRootPath 2017-08-03 16:03:59 -07:00