Update imports takes too long to show on large projects (up to 2 minutes) #41508
Labels
Needs Investigation
This issue needs a team member to investigate its status.
Needs More Info
The issue still hasn't been fully clarified
Milestone
TypeScript Version: 4.0.2
Search Terms: rename move file update imports
Code
Unfortunately I cannot provide a reduced test case as I can only reproduce this on our very large project, but I can provide the following:
typescript-rename-issue
. This is a private repository but I believe some members of the TS team already have access from debugging previous issues. If you don't have access, please send me your email address so I can provide access (TS team members only).yarn
to install TSapp/components/VisualSearchFormPopover/VisualSearchFormPopover.tsx
I had a quick look through the TSServer log to see if anything obvious stood out. It looks like
getEditsForFileRename
is taking too long:Potentially related: this project uses project references and the root
tsconfig.json
is a "solution" style project. I tried disabling project references but the problem remained.Expected behavior:
Actual behavior:
Playground Link:
Related Issues:
I've ran into this before but it was fixed. For some reason, it seems to be broken again. Whether that's due to a change in TS or a change in our codebase, I do not know.
Related:
The text was updated successfully, but these errors were encountered: