This seems to be a rather recent issue and it is not a problem caused by an extension.
On a pretty large project (mainly Typescript), if I delete the node_modules folder, run npm install, wait until it is finished and modify/save a file, it may be well over 10 minutes until this file is saved.
It seems like VSC is analyzing the whole node_modules folder (perhaps to match imports to modules all over the code?).
A solution is to force quit and reopen
Does this repo in VS Code insiders? How about with all extensions disabled?
I can confirm this happens even in vs code insiders. But I am not sure it really relates to npm install, it seems to happen at seemingly random times
Was not yet able to reproduce this with all extensions disabled
Also I am certain it relates to the feature:
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
Because I started experiencing the problem after enabling it
@CyberPhoenix90 Can you please try tracking down which extension is causing this
After some trial and error it seems pretty conclusive that the culprit is the extension Path Intellisense by Christian Kohler. It slows down deletion of files significantly and makes the editor stuck on saving participants after a large change in the file system
edit: I checked with my co-worker he encounters the saving participants problem too and he does not have Path Intellisense installed
I also inspected vscode while waiting for the saving participants was ongoing and I found that vs code and the sub processes are all idle
@maximedupre Are you still seeing this issue in VS Code insiders with extensions disabled?
Sorry, I did not have the time to try and reproduce the bug, with the current or insiders version of Code. In my case, the problem is probably caused by "Versions Lens", an extension that analyses the node modules and displays their versions.
@mjbvz I am using latest VS code version 1.24.1 and able to reproduce the issue, especially while saving markdown files and i don't have any plugins related to markdown.
In my project folder consists of:
So i think it is checking all images and gifs as well.
Closing this since we have not heard back from original opener. Seems caused by extension
This is happening for me as well, taking almost a minute.
The bug still occurs for me too. My only extensions now are "Debugger for Chrome" and "Atom One Dark Theme", so "Versions Lens" wasn't the problem.
This is happening for me, too, and it seems to hang forever in my case. Only way to fix is to restart VSCode, but now it re-occurs almost immediately after restart, making VSCode almost unusable. For me also, it seems related to
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
I have none of the extensions mentioned above, but have these:
GitLens, Vim, REST Client, Rainbow Brackets, Prettier, ESLint
I also have prettier and gitlens from that list
The problem still persists to this day even on the insiders version
@mjbvz Let's reopen this, this is definitely still reproducing for several people
I fixed a similar problem by uninstalling/disabling TypeScript Hero extension. Hope this helps somebody else :)
Yep, experiencing this constantly. With large php / html mixed files. I think either "close html/xml tag" or "highlight matching tag" plugins cause the problems. When saving - it takes ages with "saving participants" and nothing else is happening. My Deploy reloaded even not fireing up
Most helpful comment
@mjbvz Let's reopen this, this is definitely still reproducing for several people