The current code traverses the entire directory tree and checks each file against the exclude list.
This pull request checks each directory against the excluded list and skips them.
This improves start up times when there are large directory trees excluded. This is common in javascript/node projects that have a lot of dependencies.
I dont actually know what I'm doing in python. Claude wrote this. It seems to work correctly on my machine.
The current code traverses the entire directory tree and checks each file against the exclude list.
This pull request checks each directory against the excluded list and skips them.
This improves start up times when there are large directory trees excluded. This is common in javascript/node projects that have a lot of dependencies.
I dont actually know what I'm doing in python. Claude wrote this. It seems to work correctly on my machine.