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 #36

Closed
billpebert opened this issue Feb 9, 2021 · 2 comments
Closed

Extension causes high cpu load #36

billpebert opened this issue Feb 9, 2021 · 2 comments
Labels
info required More information is required

Comments

@billpebert
Copy link

  • Issue Type: Performance
  • Extension Name: live-sass
  • Extension Version: 4.4.1
  • OS Version: Windows_NT x64 10.0.18363
  • VSCode version: 1.53.0

⚠️ Make sure to attach this file from your home-directory:
⚠️c:\Users\bpgpo\AppData\Local\Temp\glenn2223.live-sass-unresponsive.cpuprofile.txt

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

@glenn2223
Copy link
Owner

Hi @billpebert,

Sorry to hear you're having this issue, although I'm pretty sure I know what the issue is.

I'm aware of a bottleneck issue with our glob pattern matcher in larger projects. This will be fixed in v5 when we move from glob to fdir (ref: #27).

Can you please see the below and answer my questions. If my suspicions are correct then the forceBaseDirectory setting will help.


⚠️ Make sure to attach this file from your home-directory:
⚠️c:\Users\bpgpo\AppData\Local\Temp\glenn2223.live-sass-unresponsive.cpuprofile.txt

I'd need this file to help debug the issue. Please visit the above path on your local machine and attach it to this issue


Please can you answer the below, I have included my suspicions after each question

  • Is this when saving or when VS Code loads?
    • When you save all files (i.e. from the command liveSass.command.oneTimeCompileSass or saving a partial file)
  • How many files (total, including non-sass) does your workspace have?
    • Thousands
  • How many of those files are SASS files?
    • Less than 100
  • Have you tried the forceBaseDirectory setting?
    • Not yet

@glenn2223 glenn2223 added the info required More information is required label Feb 16, 2021
@glenn2223
Copy link
Owner

Closing as need more info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info required More information is required
Projects
None yet
Development

No branches or pull requests

2 participants