fabiospampinato / vscode-todo-plus

Manage todo lists with ease. Powerful, easy to use and customizable.
MIT License
904 stars 228 forks source link

Extension causes high cpu load #227

Open djdakta opened 4 years ago

djdakta commented 4 years ago

fabiospampinato.vscode-todo-plus-unresponsive.cpuprofile.txt

:warning: Make sure to attach this file from your home-directory: :warning:fabiospampinato.vscode-todo-plus-unresponsive.cpuprofile.txt

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

fabiospampinato commented 4 years ago

How big is your .todo file?

djdakta commented 4 years ago

Sorry for the late reply. I would love to give you that information but I don't know where to find it. :-(

fabiospampinato commented 4 years ago

Then you're not using Todo+ for editing .todo files, you're probably using for finding //TODO comments in existing projects right? So I guess maybe you're editing very large projects and/or don't have ag/rg installed on your system?

djdakta commented 4 years ago

Hmmm... The Todo extension has it's menu option on the left side of VS Code. This is what I find on top of one of the Todo's... $Id: TODO 2325 2006-06-12 07:06:49Z dallen $ As far as I know, I'm using it like you say, finding '//TODO' comments in existing projects.

fabiospampinato commented 4 years ago

$Id: TODO 2325 2006-06-12 07:06:49Z dallen $

I'm not sure what this means 🤔

Is the extension always slow for you? Can you can you try installing ag or rg on your system?

djdakta commented 4 years ago

No, it's not always slow. I had this issue only twice since I installed the extension a few months ago.

fabiospampinato commented 4 years ago

Try installing ag/rg and see how it goes, there isn't much I can do about this.

djdakta commented 4 years ago

Thx for your time and support.

joelmukuthu commented 2 years ago

Hi @fabiospampinato. Sorry for commenting on a closed issue, but I've been seeing similar behaviour - I don't mind opening a new issue if needed.

My .todo file has 537 lines, with 158 TODOs and 53 sections. The extra lines are from comments. Adding a new TODO (i.e. pressing Ctrl+D under some section) causes a CPU spike for about 2-3 seconds. Using backticks when typing in a TODO will cause CPU usage to spike for 5-10 seconds.

Extension Version: 4.18.4 OS Version: Ubuntu 20.04 LTS x64 VSCode version: 1.60.2

Let me know if you need more info.

Eleezaveta commented 1 year ago

unfortunately, i have faced the cpu problem as well.. fabiospampinato.vscode-todo-plus-unresponsive.cpuprofile.txt