Dart-Code: Extension causes high cpu load

  • Issue Type: Performance
  • Extension Name: dart-code
  • Extension Version: 3.10.1
  • OS Version: Windows_NT x64 10.0.18363
  • VSCode version: 1.44.2

Dart-Code.dart-code-unresponsive.cpuprofile.txt

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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (11 by maintainers)

Commits related to this issue

Most upvoted comments

Ok, I managed to figure out the code that’s running from the minified stacks! It’s the code that tries to locate the roots of your projects:

https://github.com/Dart-Code/Dart-Code/blob/699c291b3f6424753ffde81ba7724e04fcb25c70/src/shared/utils/fs.ts#L69-L82

I’ll look at trying to optimise this and changing it to be async so it doesn’t block the extension host thread. Thanks!