90% of VS Code is typescript that already works fine in the browser. There's just a small layer of nodejs to interface with the local filesystem and run processes. Quite a few projects have existed that pull the core of VS code out into the browser and reimplement the small platform layer on their own:
- Eclipse Theia: https://github.com/eclipse-theia/theia
- Coder: https://github.com/cdr/code-server
I'm sure there are countless versions for mobile that are hasty Cordova-based versions of the VS Code core too.