Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS code "fileWatcher" constantly uses the CPU

I had a problem not too long ago, fileWatcher uses the processor on a regular basis. I don't understand what happened.

"C:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\Code - Insiders.exe" --ms-enable-electron-run-as-node "c:\Users\admin\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\bootstrap-fork" --type=fileWatcher

The only thing that helps is deleting the folder: C:\Users\admin\AppData\Roaming\Code Insiter

But it doesn't last long and the problem appears again.

like image 500
Lavr Avatar asked Oct 24 '25 20:10

Lavr


1 Answers

Add to settings.json:

"files.watcherExclude": {
"**/.git/objects/**": true,
"**/node_modules/**": true
}

and any other serverside folders that are likely to cause issues.

like image 171
macguyver Avatar answered Oct 27 '25 16:10

macguyver