-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
🐛 BUG: Extension is slow when using TypeScript 5.6 #970
Comments
Thank you very much for open this issue! We were having this issue in our project where every time we saved an .astro file, it took about 2 to 4 seconds to save. We were starting to think that Astro might struggle with larger or more "complex" projects, but after switching from TypeScript version 5.6.3 to 5.5.4, everything works fine now. |
Having this issue as well, reverting to 5.5.4 as suggested by @alicercedigital does help but it's not as fast as it was previously |
We have the same problem with Vue language tools, autocomplete inside Vue SFC files takes forever in a big monorepo project :( |
I'm hit severely with these performance problems, I'm fairly sure the issue are with the Astro extension. As i'm kind of able to remedy the issue. But with a caveat. So in an astro file, i do a database search and intellisensing like this: If i then switch the language directly to Typescript from Astro, in the bottom right corner of the vscode window. Then intellisense reacts so fast my finger on the . has not even left the key. The caveat being that now the global Astro object are not recocnized with types. And return statements are regarded as errors, as they are not inside a function. I'm having this issue on my two Macbook Pros
I hope this observation can help diagnose the problem. Kind regards |
This issue should have been fixed by volarjs/typescript-auto-import-cache#6 and will be resolved with the next Astro extension release. |
Unfortunately, it does not fix the issue. It makes it better, but there's still work to be done here. I suspect a fix is needed in Volar itself |
volarjs/volar.js#242 seems to fix this, at least partially. It's massively faster (by 410ms on my computer), but further optimisations can most likely bring this lower. |
I hope for a quick release, thanks for your help! |
Update came through, tested in MBP 2018 i9, and it's very swift now! Thanks a lot! |
This problem keeps happening. We need to use TypeScript version 5.5.4 to work on the project. If we use any version above that, IntelliSense becomes very slow, taking several seconds to respond, and saving files also takes longer. With version 5.5.4, everything works fine. We are currently using:
|
Describe the Bug
TS 5.6 seems to have changed something, and now the extension is quite slow. Probably that https://github.com/volarjs/typescript-auto-import-cache requires an update for this.
Keeping this issue around as a refuge for fellow developers affected by this.
Steps to Reproduce
Link to Minimal Reproducible Example
N/A. Any repo with the correct version is affected.
The text was updated successfully, but these errors were encountered: