I have a Dell Inspiron 15 laptop with a Core i5 7th Generation along with 4GB DDR4 2400MHz. The OS is Windows 10 Home Single x64 (Build 15063). Most of the tasks being performed on that laptop are coding with Visual Studio Code, running MySQL server and some Java programming. It was working perfectly until the day before yesterday.
Starting from yesterday, the Visual Studio Code program has started consuming all my RAM and freezes my laptop. Both HDD and RAM status in Task Manager went up to 100%. I always have to hard reset the laptop.
The PC was operating normally until I opened the Visual Studio Code. I found out the Visual Studio is the cause of the problem. I uninstalled and reinstalled the program but that didn't work for me. Also updating to the latest version didn't work. I was just doing coding just like every day and didn't install any plugins.
Edit: I got the problem fixed. But I don't know how the solution and this problem relates with.
After upgrading to Fall Creators Update (1709), I could see all the details and sub tasks the VS Code is performing in the task manager. I found out more than 2000 Git for Windows processes were running under Visual Studio Code and consuming all my RAM. Those Git for Windows processes were increasing infinitely. Each process uses 2MB RAM.
So, I uninstalled the Git (2.6.0) and reinstall with the latest version (2.15.2). That fixed my problem but I am not really satisfied with that.
It would be very nice and appreciated if someone explains me how the Git gives trouble to the Visual Studio Code.