language-tools: Slow Intellisense after Update to VSCode v1.77.x
Describe the bug
Not sure what happen but the Svelte Intellisense is extremely slow after I update the VSCode:
*.svelte
file example:
*.ts
file example
As 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
- OS: Windows 10
- IDE: VSCode v1.77.x
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 5
- Comments: 18 (5 by maintainers)
In my case the cause of the slow IntelliSense was the addition of
"svelte-google-materialdesign-icons": "^0.8.3"
this exports all of its components for the icons and makes autocomplete very slow to load. I am also usingsvelte-fa
for fontawesome icons that we are using. I guess for now I will settle on one of these which is the more sensible choice anyway.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
svelte-google-materialdesign-icons
removed: CPU-20240101T204056-after.cpuprofileProfiles were taken on 108.1.0 of the extension and the following vscode version:
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.
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 vs code 1.77.3
buggy version: Svelte for VS Code 107.3.0 last working version: Svelte for VS Code 107.2.5
Hope this helps