Skip to content

Commit

Permalink
Create an ATA cache per patch version of TS
Browse files Browse the repository at this point in the history
Previously, we created one cache per minor version. This changes allows
us to invalidate the ATA cache by releasing a new patch version of
Typescript.
  • Loading branch information
sandersn committed Apr 8, 2019
1 parent 4b009e3 commit b71f803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tsserver/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ namespace ts.server {
process.env.USERPROFILE ||
(process.env.HOMEDRIVE && process.env.HOMEPATH && normalizeSlashes(process.env.HOMEDRIVE + process.env.HOMEPATH)) ||
os.tmpdir();
return combinePaths(combinePaths(normalizeSlashes(basePath), "Microsoft/TypeScript"), versionMajorMinor);
return combinePaths(combinePaths(normalizeSlashes(basePath), "Microsoft/TypeScript"), version);
}
case "openbsd":
case "freebsd":
case "darwin":
case "linux":
case "android": {
const cacheLocation = getNonWindowsCacheLocation(process.platform === "darwin");
return combinePaths(combinePaths(cacheLocation, "typescript"), versionMajorMinor);
return combinePaths(combinePaths(cacheLocation, "typescript"), version);
}
default:
return Debug.fail(`unsupported platform '${process.platform}'`);
Expand Down

0 comments on commit b71f803

Please sign in to comment.