Using a network share for that specific usecase may be a great option. I think VSCode server may be more practical for collaborative work or for PCs with limited resources.
I self-host the test servers for some projects I have been working for and an awesome private GitLab instance. Besides that I also host some minecraft servers, lemmy, a samba share, two openvpn servers and an nginx proxy. Awesome and educational so far!