TodoTreeView icon indicating copy to clipboard operation
TodoTreeView copied to clipboard

Heavy lag because of permissive file match

Open PerilousBooklet opened this issue 3 months ago • 2 comments

todotreeview-xl starts lagging heavily when it tries to read huge folders like the Java LSP server jdtls's config folder (.jdtls). I solved it for now by using table.insert(config.ignore_files, ".jdtls/") in the .lite_project.lua file, but I wonder if there should be an additional filtering step for heavy folders in the plugin itself.

PerilousBooklet avatar Sep 19 '25 23:09 PerilousBooklet

The issue here is for most projects you want to parse the big folders if they are relevant to you. So the solution should not be to ignore them by default. That's part of the reason I added the ignore_paths variable to be able to ignore what doesn't matter.

What people usually want to ignore are vendor or third party folders in their projects, configuration files from .git, .jdtls and others like that. Maybe the way is to add these as ignored by default.

drmargarido avatar Sep 20 '25 11:09 drmargarido

You're right, so I'll make a list of the most common/biggest config folders and make a PR to add them by default.

PerilousBooklet avatar Sep 20 '25 11:09 PerilousBooklet