Prettier-vscode: Extension causes high cpu load

Created on 14 Mar 2019  Â·  8Comments  Â·  Source: prettier/prettier-vscode

  • Issue Type: Performance
  • Extension Name: prettier-vscode
  • Extension Version: 1.8.1
  • OS Version: Linux x64 4.15.0-45-generic
  • VSCode version: 1.31.1

:warning: Make sure to attach this file from your home-directory: /home/juan/esbenp.prettier-vscode-unresponsive.cpuprofile.txt :warning:

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

locked

Most helpful comment

@CiGit by the ‘trap people fall in’ I mean the creation of multiple issues with the same dummy text. I'm subscribed to prettier-vscode on GitHub and am seeing the same issue created over and over again several times a week. This is not useful for anyone 🙂

All 8 comments

__2 maintainers__: Let's see if this trap people fall in can be fixed in VSCode: https://github.com/Microsoft/vscode/issues/70492

@kachkaev All those issues are useless without the attached file. The stack trace can differ between those issues. So not necessarily duplicate. I suspect things in prettier-**lint tho.

@CiGit by the ‘trap people fall in’ I mean the creation of multiple issues with the same dummy text. I'm subscribed to prettier-vscode on GitHub and am seeing the same issue created over and over again several times a week. This is not useful for anyone 🙂

Add this line to .eslintrc.json file, it works for me)

"env": {
    "browser": true
},

@ntotten, just FYI. https://github.com/microsoft/vscode/issues/70492 is why this issue no longer appears recently and not a change in the plugin itself. Seems like it might be still worth investigating. Hope that closing lots of duplicates won't take you too long 🙌

Closing this one since no stack trace.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings