Skip to content

Commit b71f803

Browse files
committed
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.
1 parent 4b009e3 commit b71f803

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tsserver/server.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ namespace ts.server {
2929
process.env.USERPROFILE ||
3030
(process.env.HOMEDRIVE && process.env.HOMEPATH && normalizeSlashes(process.env.HOMEDRIVE + process.env.HOMEPATH)) ||
3131
os.tmpdir();
32-
return combinePaths(combinePaths(normalizeSlashes(basePath), "Microsoft/TypeScript"), versionMajorMinor);
32+
return combinePaths(combinePaths(normalizeSlashes(basePath), "Microsoft/TypeScript"), version);
3333
}
3434
case "openbsd":
3535
case "freebsd":
3636
case "darwin":
3737
case "linux":
3838
case "android": {
3939
const cacheLocation = getNonWindowsCacheLocation(process.platform === "darwin");
40-
return combinePaths(combinePaths(cacheLocation, "typescript"), versionMajorMinor);
40+
return combinePaths(combinePaths(cacheLocation, "typescript"), version);
4141
}
4242
default:
4343
return Debug.fail(`unsupported platform '${process.platform}'`);

0 commit comments

Comments
 (0)