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
This commit is contained in:
Matt Bierner 2017-05-04 20:04:46 -07:00
parent 96aca4c7d0
commit e44d419c90

View file

@ -96,6 +96,9 @@ namespace ts.server.typingsInstaller {
this.log.writeLine(`Updating ${TypesRegistryPackageName} npm package...`);
}
this.execSync(`${this.npmPath} install ${TypesRegistryPackageName}`, { cwd: globalTypingsCacheLocation, stdio: "ignore" });
if (this.log.isEnabled()) {
this.log.writeLine(`Updated ${TypesRegistryPackageName} npm package`);
}
}
catch (e) {
if (this.log.isEnabled()) {