Skip to content
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

Extension causes high cpu load #1098

Closed
uc-prk opened this issue Jul 15, 2021 · 2 comments
Closed

Extension causes high cpu load #1098

uc-prk opened this issue Jul 15, 2021 · 2 comments

Comments

@uc-prk
Copy link

uc-prk commented Jul 15, 2021

  • Issue Type: Performance
  • Extension Name: svelte-vscode
  • Extension Version: 105.3.0
  • OS Version: Windows_NT x64 10.0.19042
  • VS Code version: 1.57.1

⚠️ Make sure to attach this file from your home-directory:
⚠️c:\Users\Prabhat\AppData\Local\Temp\svelte.svelte-vscode-unresponsive.cpuprofile.txt

Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load

@dummdidumm
Copy link
Member

You need to attach that file or else we can't investigate this

dummdidumm pushed a commit to dummdidumm/language-tools that referenced this issue Aug 24, 2021
Give certain requests priority.
If a request doesn't have priority, we first wait 1 second to
1. let higher priority requests get through first
2. wait for possible document changes, which make the request wait again

This hopefully makes perceived responsiveness of the language server better
sveltejs#1098, sveltejs#1130, sveltejs#1139
@dummdidumm
Copy link
Member

Closing due to lack of reproduction.

dummdidumm added a commit that referenced this issue Aug 24, 2021
Give certain requests priority.
If a request doesn't have priority, we first wait 1 second to
1. let higher priority requests get through first
2. wait for possible document changes, which make the request wait again

This hopefully makes perceived responsiveness of the language server better
#1098, #1130, #1139
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants