Create an ATA cache per patch version of TS

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.
This commit is contained in:
Nathan Shively-Sanders
2019-04-08 09:41:22 -07:00
parent 4b009e3098
commit b71f80351b

View File

@@ -29,7 +29,7 @@ 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":
@@ -37,7 +37,7 @@ namespace ts.server {
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}'`);