I had the same problem, thankfully the solution was installing VSCode in the chroot environment, then run the code serve-web in the chroot and it will provide a url so you can access VSCode
code serve-web