Always send a response to installTypings even if all types are cached
This commit is contained in:
parent
82502ea086
commit
ee2d436999
|
@ -1018,7 +1018,7 @@ namespace ts.projectSystem {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
session.executeCommand(changeRequest);
|
session.executeCommand(changeRequest);
|
||||||
host.checkTimeoutQueueLengthAndRun(0); // This enqueues the updategraph and refresh inferred projects
|
host.checkTimeoutQueueLengthAndRun(2); // This enqueues the updategraph and refresh inferred projects
|
||||||
const version2 = proj.getCachedUnresolvedImportsPerFile_TestOnly().getVersion();
|
const version2 = proj.getCachedUnresolvedImportsPerFile_TestOnly().getVersion();
|
||||||
assert.equal(version1, version2, "set of unresolved imports should not change");
|
assert.equal(version1, version2, "set of unresolved imports should not change");
|
||||||
});
|
});
|
||||||
|
|
|
@ -257,8 +257,9 @@ namespace ts.server.typingsInstaller {
|
||||||
const filteredTypings = this.filterTypings(typingsToInstall);
|
const filteredTypings = this.filterTypings(typingsToInstall);
|
||||||
if (filteredTypings.length === 0) {
|
if (filteredTypings.length === 0) {
|
||||||
if (this.log.isEnabled()) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue