Closed ricmatsui closed 2 years ago
Closes #207 Closes #216
The pattern for the file system watcher has a typo which is causing it to watch all files in the workspace folders instead of only the .tour files.
.tour
This PR fixes the typo by closing the group condition.
For testing, I am switching between two branches in a large git repo which changes >1000 files which are not .tour files.
Without the fix whenever I switch branches I see very high cpu usage of the Extension Host with many calls to discoverTours:
discoverTours
With the fix whenever I switches branches there is no longer high CPU usage and no calls to discoverTours (since no .tour files changed):
Thanks for the quick review! 🚀
Excited to renable. I'm impressed as I did a quick look and couldn't figure how any issues last I looked. Then again I'm a TS n00b. Appreciate this!
Closes #207 Closes #216
The pattern for the file system watcher has a typo which is causing it to watch all files in the workspace folders instead of only the
.tour
files.This PR fixes the typo by closing the group condition.
For testing, I am switching between two branches in a large git repo which changes >1000 files which are not
.tour
files.Without the fix whenever I switch branches I see very high cpu usage of the Extension Host with many calls to
discoverTours
:With the fix whenever I switches branches there is no longer high CPU usage and no calls to
discoverTours
(since no .tour files changed):