-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jupyter extension starts an expensive workspace search on activation #8293
Comments
Thanks for the issue. Search for notebooks is actually implemented in VS code core. Transferring the issue there. |
I didn't realize that the jupyter extension was starting a search through the entire workspace:
Please don't do this unless absolutely necessary, searches can be very expensive |
@roblourens we use this to gather telemetry on the number of notebooks in a workspace. Is there an alternative? |
Do you absolutely have to have that info? If so, maybe you could limit the search to run for 5s. If I open my home folder, and activate the jupyter extension, the search runs for minutes and my machine looks like this: extensions running searches is one of the top things that leads to people saying that vscode is "slow" or "bloated" so we really want to avoid this. I just noticed that the python extension is doing this too. |
Does VS code have this in its own telemetry (extension counts for workspaces?) @ronglums @claudiaregio do we still use notebook count telemetry in a workspace for anything? |
We do something to collect file counts, but it doesn't use ripgrep, has some low max count, and is careful to avoid too much system impact |
Sounds like we can drop this then. You have an equivalent. |
I mean we don't report the number of notebooks, just total number of files |
Could that be modified to indicate extension? |
Probably wouldn't count on it |
I'll let @claudiaregio comment on whether this data point is still in use. |
In brief...
Jupyter search is following circular symlinks. This tells me it is ignoring my setting for
"search.exclude"
. I am now going to be trying"search.followSymlinks": false
. Does Jupyter honor that setting?If not, how can I tell Jupyter to exclude search directories or not to follow symlinks?
FWIW, this is also an issue in Pylance (microsoft/pylance-release#1939), where I had to create a
pyrightconfig.json
file and duplicate my"search.exclude"
setting.It would be far better if all extensions honored some global setting, otherwise I'll be chasing this type of issue forever.
Environment data
Expected behaviour
XXX
Actual behaviour
Jupyter search consumes 100% CPU as it get stuck in circular symlinks.
Steps to reproduce:
Please see: microsoft/vscode-remote-release#5904
Logs
Please see: microsoft/vscode-remote-release#5904
The text was updated successfully, but these errors were encountered: