Always send a response to installTypings even if all types are cached

This commit is contained in:
Ryan Cavanaugh 2017-11-20 14:43:25 -08:00
parent 3d5712dee9
commit f3257d4b04

View File

@ -300,8 +300,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;
}