-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Previewing large diff prevents diffing other files for about 10-20 seconds #57697
Comments
Duplicate of #40681 |
@borekb Can you please give the files that reproduce or some files very similar in shape (if you cannot share the original files) ? |
@alexandrudima I just found out that it's most likely caused by some extension as I can't reproduce it in Insiders. Good luck to me finding out which one it is as I have quite a few of them: My VSCode stable extensions:
My Insiders extensions:
|
@borekb This is pretty easy to figure out. Just run F1 > Show running extensions and press the record button. You might need to restart in order to run the extension host with debugging turned on. Then, do the steps that reproduce for you and the extension with the most CPU time will show up. You can also save the profile if you want to and attach it here. |
Thanks, I'll try that. |
Hmm, after reproducing the behavior and running profiler at the same time, this is the result after roughly 10 seconds. I.e., "nothing": VSCode is perfectly responsive at all time, I just hear CPU fan spinning faster and clicking on other files in SCM view does nothing. Any other suggestions on where to look? |
@borekb Can you please save the profile and attach it here. Sometimes, we have trouble automatically associating a certain stack trace to a certain extension and sometimes we need to look into the profile manually. Also, it is possible that extensions include native node modules. In such cases, we could not associate the CPU time spent directly. Btw, if the above list reproduces for you, you might want to look into disabling: EditorConfig (unlikely), Spell Right, emojisense of Path Intellisense, as they are 3rd party extensions. |
Will do. By the way, I have many more extensions as shown in #57697 (comment), the screenshot is a small part of it. |
One way I would approach this would be to open VS Code and do the minimal steps necessary to reproduce. From your extension list, it looks like you opened markdown files, JSON files and TS/JS files before reproducing. Every time you do something, it is more likely more extensions get activated and begin to do something ... |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
@alexandrudima Hi, he're a profile of the following situation: no tabs open, only two files changed in SCM panel: |
BTW, I see the same behavior not only in the SCM panel but also e.g. with the Git Tree Compare extension which also opens diffs. |
@borekb In the CPU profile you have attached, there is a lot of CPU usage in a method named After searching for the long method name on GitHub, I had a hit here So it would be best to reach out to @KnisterPeter and create an issue directly at https://github.com/KnisterPeter/vscode-github . |
@alexandrudima Thanks! Will do. |
Steps to Reproduce:
yarn.lock
orpackage-lock.json
are usually good suspects to reproduce this.yarn.lock
) – VSCode opens the diff editor.VSCode is responsive during this time but clicking files in the VCS panel does nothing, or appears to. I've been observing this issue for many versions of VSCode and finally decided to report it :)
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: