Closed sheldonhull closed 2 years ago
Hmm, interesting. CodeTour only looks for tours within the following workspace folders: .tours
, .vscode/tours
and /github/tours
. So the size of the workspace that you open should matter (at least in theory).
If you opened a small directory with VS Code, do you see the same issue? It would definitely be valuable to determine if this repros 100% for you, or if it seems to be dependent on the workspace size.
I ran into this again multiple times on a moderate sized project.
</details>
Just ran on my my github blog repo. CodeTour took 11ms to initialize.
No tours currently in the repo. Creating a couple random tours to see if this changes this.
EDIT: I added a tour with 9 steps and duplicated 4 times. Reopened window and 12ms initialize time.
Will continue to monitor and see if I can reproduce. It happens quite a bit and blocks a lot of actions until I disable it in this repo. Will see if I can get more detail by profiling or something to see what might be happening. Just tried several times and nothing happening.
Are there any filewatcher events that this would be triggered by with files changing, if they are linked to a code tour? Maybe something else that is triggered periodically I can look at?
Bug
codetour
0.0.58
Darwin x64 20.6.0
1.60.2
:warning: We have written the needed data into your clipboard. Please paste! :warning:
This is not the first time I noticed this problem. Happened for a few days, and not certain what other debug information might be useful.
I had to remove as enabled by default to avoid slow performance issues in loading my monorepo workspace. Not sure if having a moderate size repo with more resources might be impacting this. Is there some dynamic search through the entire project for tour files, or does it limit it's search to only the folder
.tours
or override folder?If not, I could see that perhaps iterating through node/yarn directories might be causing some issues. Just a guess. Let me know what else would be useful to gather.