Home Assistant Community Add-on: Visual Studio Code

It seems that there is currently a memory leak. It seems to start when I switch to the VSCode tab, and it continues until HA locks up.
I have to reboot to prevent HA totally locking up.

Here is a graph of memory use after opening VSCode.
CPU use graph is similar to memory.
image

The add-on worked before for me. It has been some time since I last used it.
Some update to HA or HA OS must have broken it?

EDIT: I found the cause for this. I had opened the root directory / in VSCode. And I just realised all my problems started after doing that.

So I opened the VSCode tab and opened the /config folder. I checked the memory and CPU and they were racing up again like I expected. I then quickly rebooted HA before it locked up.

After reboot, I tried the VSCode tab again, and it opened in the /config directory now by default. I switched back and forth on the tabs, and checked memory use. This time, It stays under 20% at all times.

So, TLDR: don’t open the root folder / with this add-on for now, or you get a real hot and unresponsive Raspberry Pi. If you use an SD card, all that swapping can destroy it as well.

2 Likes