I have 8gb of memory installed on my systems, so I just let it run. If I had less memory, it would be off for sure.
Not that you guys asked for it, but here's an up to date and more memory efficient version of the vs code server.
https://community.home-assistant.io/t/code-editor-modern-code-server-app-for-home-assistant