That starts to sound like using VS Code in remote mode.

Emacs in tramp mode.