Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS Server stats files in ATA cache even if ATA is not being used #52705

Closed
mjbvz opened this issue Feb 9, 2023 · 1 comment · Fixed by #52904
Closed

TS Server stats files in ATA cache even if ATA is not being used #52705

mjbvz opened this issue Feb 9, 2023 · 1 comment · Fixed by #52904
Assignees
Labels
Needs Investigation This issue needs a team member to investigate its status.

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Feb 9, 2023

Related to #52695

Bug Report

🔎 Search Terms

  • fs.stat
  • statSync
  • performance

Problem

Create a new project that has simple tsconfig and open a single .ts file with the contents:

import fs from 'fs';

After opening this project in VS Code, I notice a large number of fs.stat calls into /Users/matb/Library/Caches/typescript/5.0/, where automatically acquired types are stored. However according to the TS Server log, none of these files end up in the project

Here's a log of all the file stat calls when opening this one file: tsSyncCalls.txt

@RyanCavanaugh RyanCavanaugh added the Needs Investigation This issue needs a team member to investigate its status. label Feb 14, 2023
@sheetalkamat
Copy link
Member

The location checks in /Users/matb/Library/Caches/typescript/5.0/ are coming from typing installer as it initialises and processes global cache. I think this can be deferred till we really get the request though. Will experiment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Investigation This issue needs a team member to investigate its status.
Projects
None yet
3 participants