question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension slow to respond

See original GitHub issue

Describe the bug Getting auto-completion, symbol navigation or symbol information can be very slow (tooltip stuck on Loading...). (It is probably the language server, because the profile from “Running Extensions” does not pick it up as causing CPU load.)

To Reproduce Invoke commands like “Trigger Suggest” and “Go to Definition”.

As for the conditions necessary to cause the slowdown, i am not sure. It may have to do with using carbon-components-svelte/carbon-icons-svelte which introduce a lot of Svelte files. The “Output” panel shows this for Svelte:

SnapshotManager File Statistics:
Project files: 26022
Svelte files: 7210
From node_modules: 33251
Total: 33276

Expected behavior Language features are reasonably fast.

Screenshots image

System (please complete the following information):

  • OS: Windows 10, 64bit
  • IDE: VSCode
  • Plugin/Package: Svelte for VSCode

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:40 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
takoyarocommented, Feb 12, 2022

My apologies, I should have provided better feedback than that 🥲

I am not using the transformation. I have disabled diagnostics. I am using the latest svelte extension.

I have fixed my problem by changing my project dependencies packages versions…would have to pinpoint which one was causing the issue. Updated deps:

svelte-preprocess@4.10.1=>4.9.8 This is a rollback svelte@3.44.0=>3.46.3 typescript@4.4.3=>4.5.5

After making these changes, the extension is now working fine.

1reaction
dimfeldcommented, Sep 13, 2021

Ok, so I also did not see this reproduce when I tried in in VSCode proper, but I did figure out my particular issue.

Since svelte-language-server is linked to typescript@*, yarn was just never upgrading it in coc-svelte and it was still pointing to version 4.1.3. There have been a bunch of performance fixes in typescript for pnpm repositories, and indeed, after forcing it to upgrade to latest typescript it’s just as fast with pnpm as with yarn.

Unfortunately this won’t really help anyone else having performance issues, but consider my problems done 😃. I am still seeing it slow with both Neovim and VSCode on really large Svelte files (like 2000 lines) with tons of reactive statements, but that’s less concerning.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 ways to fix Google Chrome when it's running slow
To fix Google Chrome when it's running slow, try clearing its cache or wiping the browser history. You can also try deleting unnecessary ......
Read more >
Google Chrome is Very Slow: How I Fixed it! (5+ Methods ...
Disable Chrome Extensions and Blockers · Launch Chrome Browser on the computer · Open Chrome Settings from the More. vertical 3dots icon ·...
Read more >
Is Your VS Code Extension Slow? Here's How to Speed it Up!
One possible cause is the number of files or the size of the extension. Some extensions have so much functionality in them that...
Read more >
How to clean up Google Chrome when it's slow or acting up
If your Google Chrome is acting weirdly or is being very slow, it's probably time to look at your installed extensions and remove...
Read more >
How to Fix Input Lag and Slow Performance in Google Chrome
Disable extensions that you aren't using, you might even need to delete them. Clear your browser's cache and cookies. Type Ctrl + Shift...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found