-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Slow Intellisense after Update to VSCode v1.77.x #1984
Comments
Does this happen when you disable all other extensions? You can create an empty setting profile and only install the Svelte extension. Also, could you try if it happens in other projects? If not, we need a reproduction to be able to help you. |
This still happen when I disabled all other extensions and only use I tried on a different project/repo. Looks like it is faster somehow. Hmmm 🤔 |
No idea. Can you try these to narrow it down more?
|
can second this, revert back to 107.0.0 make mine work again, The latest version simply didn't work, at all. even with CTRL+SPACE, (brings out a loading option that will stuck forever) Weirdly, when I was on the latest version, in the first few seconds of opening VS Code intellisense was working, but it will fail very soon and then stop completely. windows 10 Pro 1909 buggy version: Svelte for VS Code 107.3.0 Hope this helps |
Thanks for the downgrade suggestion. Looks like it is not just me who dealing with this issue. I noticed it is only happening on the big file - like ~1000k lines of code. When I create a new svelte file in the same repo, it responds faster on that file. |
It might have something to do with TypeScript 5.0 or the fix-all quick-fix. But we still need a reproduction to know what the problem is. TypeScript 5.0 has a lot of changes. We cannot find the problem by just looking at the git diff. I can't reproduce it with a large file. I created a 2000 lines file, and it's still pretty responsive. It might have something to do with the content of that file instead. Could you try commenting out some of the code to narrow the problem? |
This is an issue for me even on VSCode 1.78.2, vscode-svelte v107.4.3. Will try to reproduce when I have time. |
Any update on this? |
Possibly related: tailwindlabs/tailwindcss-intellisense#755 (comment) |
We won't be able to help you if we can't reproduce the problem. |
This will be hard to re-produce, as the issues only occur in random |
Tried disable |
The more important point was that there was a potential fix for the underlying cause in VScode 1.80 microsoft/vscode#184926 (comment) EDIT: I should say fix for the potential underlying cause. |
VS Code 1.80.0 has just been released, and I have updated my version. However, the issue I was experiencing still persists. |
even in same svelte file with less code, emmet/css/tailwind are fast, only js/ts related things for svelte (declaration something in script tag / using func,var from script, html attribute svelte specific syntax) are laggy. comparing tsx file, i think svelte lang server seems slower than not like astro extension |
108.1.0 improves the performance of files with big html. Does this address the problem you all have? If not, sorry for repeating it. Please provide a reproduction. You don't have to submit the problematic repository. You can check for things in common for files with performance problems or try removing stuff from those files to narrow down the problem. As a last resort, you can provide a CPU profile so we can at least know where the bottleneck is.
|
In my case the cause of the slow IntelliSense was the addition of I have included a CPU profile of how long it takes to load with this package added: CPU-20240101T203600.cpuprofile Here is the profiler with Profiles were taken on 108.1.0 of the extension and the following vscode version:
|
Closing as inactive |
Describe the bug
Not sure what happen but the Svelte Intellisense is extremely slow after I update the VSCode:
*.svelte
file example:*.ts
file exampleAs you can see, with
svelte
file it took over 5 secs for VSCode to know it is the wrong syntax, on the other hands,ts
file only took ~1 sec.Reproduction
See above!
Expected behaviour
Faster response when typing...
System Info
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: