Merge pull request #20173 from RyanCavanaugh/fixTypingsInstallerAgain_master

Always send a response to installTypings even if all types are cached
This commit is contained in:
Andrew Casey
2017-11-27 10:47:05 -08:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -257,8 +257,9 @@ namespace ts.server.typingsInstaller {
const filteredTypings = this.filterTypings(typingsToInstall);
if (filteredTypings.length === 0) {
if (this.log.isEnabled()) {
this.log.writeLine(`All typings are known to be missing or invalid - no need to go any further`);
this.log.writeLine(`All typings are known to be missing or invalid - no need to install more typings`);
}
this.sendResponse(this.createSetTypings(req, currentlyCachedTypings));
return;
}