Skip to content

Commit e934c30

Browse files
authored
Merge pull request microsoft#20173 from RyanCavanaugh/fixTypingsInstallerAgain_master
Always send a response to installTypings even if all types are cached
2 parents b36379c + ee2d436 commit e934c30

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/harness/unittests/typingsInstaller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ namespace ts.projectSystem {
10181018
}
10191019
};
10201020
session.executeCommand(changeRequest);
1021-
host.checkTimeoutQueueLengthAndRun(0); // This enqueues the updategraph and refresh inferred projects
1021+
host.checkTimeoutQueueLengthAndRun(2); // This enqueues the updategraph and refresh inferred projects
10221022
const version2 = proj.getCachedUnresolvedImportsPerFile_TestOnly().getVersion();
10231023
assert.equal(version1, version2, "set of unresolved imports should not change");
10241024
});

src/server/typingsInstaller/typingsInstaller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,9 @@ namespace ts.server.typingsInstaller {
257257
const filteredTypings = this.filterTypings(typingsToInstall);
258258
if (filteredTypings.length === 0) {
259259
if (this.log.isEnabled()) {
260-
this.log.writeLine(`All typings are known to be missing or invalid - no need to go any further`);
260+
this.log.writeLine(`All typings are known to be missing or invalid - no need to install more typings`);
261261
}
262+
this.sendResponse(this.createSetTypings(req, currentlyCachedTypings));
262263
return;
263264
}
264265

0 commit comments

Comments
 (0)