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:

svelte-slow

*.ts file example

ts-not-slow

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)

Most upvoted comments

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 using svelte-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.cpuprofile

Profiles were taken on 108.1.0 of the extension and the following vscode version:

❯ code-insiders --version
1.86.0-insider
9621add46007f7a1ab37d1fce9bcdcecca62aeb0
arm64

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