Commit Graph

118 Commits

Author SHA1 Message Date
Sheetal Nandi
b3d83c81cc Handle command too long failure in typings installer 2018-04-12 11:43:18 -07:00
Sheetal Nandi
e304178c65 Add time stamp into the ti log. 2018-04-06 14:22:04 -07:00
Sheetal Nandi
e48ed3f9c2 Do not close the file watches just to create new ones in the type installer
Fixes #22581
2018-03-15 10:45:09 -07:00
Andy
a564912d9a Apply 'no-unnecessary-qualifier' lint rule (#22009) 2018-03-01 14:20:18 -08:00
Nathan Shively-Sanders
7e8dab681a typingsInstaller:Remove triple-slash references (#21982)
Replace them with an explicit list of files in tsconfig. I got this list
by adding --listFiles to the jake-generated command.
2018-02-16 14:00:10 -08:00
uniqueiniquity
4c89a813bf Handle case where package.json and package-lock.json don't agree 2018-02-09 10:36:49 -08:00
uniqueiniquity
7397fb11c4 Fix lint and test errors and add tests 2018-01-19 14:10:06 -08:00
uniqueiniquity
d34b86573c Respond to CR 2018-01-19 13:13:51 -08:00
uniqueiniquity
a21f73f862 Remove timestamp checking and move registry check into jstyping 2018-01-11 12:58:22 -08:00
uniqueiniquity
e72ea6f7b1 Update installed types if older than those listed in the registry 2018-01-11 12:58:22 -08:00
uniqueiniquity
23324345e2 Update representation of timestamp file to prevent some extra install calls 2018-01-11 12:58:22 -08:00
uniqueiniquity
6a16cfe0a5 Use existing map to hold representations of timestamp files 2018-01-11 12:58:22 -08:00
uniqueiniquity
7b6be118f5 Allow for local timestamp files and style fixes 2018-01-11 12:58:22 -08:00
uniqueiniquity
3f23d5d02e Respond to CR 2018-01-11 12:58:22 -08:00
uniqueiniquity
bf4ec1df5a Fix timestamp writing, npm install, and cache behavior 2018-01-11 12:58:21 -08:00
uniqueiniquity
b0321dc177 Refactor to avoid errors 2018-01-11 12:58:21 -08:00
Benjamin Lichtman
ee5e8e3eee Ensure proper JSON writing behavior of timestamps 2018-01-11 12:58:21 -08:00
uniqueiniquity
9d298a13a1 [WIP] enable updating ATA files 2018-01-11 12:58:21 -08:00
Andy
d8142339f9 Use 'filter' array helper (#20452) 2017-12-04 13:36:01 -08:00
Andrew Casey
e934c30513 Merge pull request #20173 from RyanCavanaugh/fixTypingsInstallerAgain_master
Always send a response to installTypings even if all types are cached
2017-11-27 10:47: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
Ryan Cavanaugh
ee2d436999 Always send a response to installTypings even if all types are cached 2017-11-20 21:32:56 -08:00
Ryan Cavanaugh
a416826b64 Apply safelist exclusions even when include is not specified; recompute project contexts when installer reqs finish 2017-11-16 12:52:30 -08:00
micbou
d97335e4e7 Silence NPM warnings when installing typings (#19749) 2017-11-06 09:45:52 -08:00
Andy
0a7b7e07ee Apply 'variable-name' tslint rule (#19743) 2017-11-06 09:23:47 -08:00
Andy
6a382f1436 In typings installer, provide mandatory 'package.json' fields (#19663) 2017-11-01 14:20:26 -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
Andy
917ae32937 Always log output of execSync (#19110)
* Always log output of execSync

* Fix lint
2017-10-11 14:50:45 -07:00
Sheetal Nandi
e30a66d22f Add utitlity for stringContains 2017-10-10 17:16:39 -07:00
Andy
193f4be355 Enable interface-over-type-literal lint rule (#17733) 2017-09-07 09:14:59 -07:00
Mohamed Hegazy
deaddb5595 Ports #17983 (#17986)
* Bind logger function before using

* Use lambda isntead of bind
2017-08-23 13:01:14 -07:00
Ryan Cavanaugh
43b8ce664c Merge 2017-08-22 14:31:49 -07:00
Ryan Cavanaugh
af68a61ba7 Ignore scripts for types packages 2017-08-16 11:53:44 -07:00
Andy
08fbcd8b80 Fix many no-object-literal-type-assertion lint errors (#17278)
* Fix many no-object-literal-type-assertion lint errors

* Simple fixes

* Use a union for FlowNode

* PR feedback and remove remaining `id()` uses

* Use a union for CodeBlock

* Discriminate CodeBlock by CodeBlockKind
2017-08-10 12:52:15 -07:00
Ryan Cavanaugh
5272ec6309 Types Map WIP 2017-07-27 16:07:50 -07:00
Andy
3330f2a33b JsTyping: Remove "safeList" global variable (#17304) 2017-07-27 10:54:47 -07:00
Andy Hanson
96d537bc54 readFile may return undefined 2017-07-14 15:57:23 -07:00
Andy
efc861c76d Add logging to discoverTypings (#16652) 2017-07-13 07:10:35 -07:00
Andy
e7dc2a67ca Enable "object-literal-shorthand" lint rule (#16987) 2017-07-07 07:26:58 -07:00
Andy
179a3e10b5 Handle depth in all readDirectory implementations (#16646) 2017-06-29 11:04:33 -07:00
Bill Ticehurst
2e0eb26543 Fix equals 2017-05-30 10:39:03 -07:00
Bill Ticehurst
05d3ff1823 Wrap npmLocation if needed 2017-05-30 10:38:55 -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
Matt Bierner
e44d419c90 Add Log for When Typings Installer Finishes Updating the Types Registry
**Bug**
While investigating #15301, I was confused by the typing installer's log `Updating types-registry npm package...`. This was often the last line of the log file, leading me to believe that the types-registry update was still ongoing

**Fix**
Add an extra log for when the type-registry update completes successfully
2017-05-04 20:04:46 -07:00
Arthur Ozga
7e03429a8e enforce triple-equals 2017-04-04 15:51:13 -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