You can do this right now with the Remote SSH extension for VS Code:
https://marketplace.visualstudio.com/items?itemName=ms-vscod...
https://marketplace.visualstudio.com/items?itemName=ms-vscod...
I wish this was even more modular so we could have a dumb compile farm, +local ide +run&debug on-device (I've recently got 90% closer by remote sshing with vs code to a pi vm)