microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.66k stars 288 forks source link

Remote Development support for nix shell #554

Open mschuwalow opened 5 years ago

mschuwalow commented 5 years ago

First of all the remote development feature is great! I think it would be nice tough to integrate this with nix-shell or https://github.com/target/lorri for lightweight environments using the nix package manager. I think this has the potential to be even nicer than the docker environments as you don't have issues with owner permissions and don't have to volume mount configuration files.

arrterian commented 5 years ago

@mschuwalow Hi, I released an experimental extension for working with nix environments in vs code. https://marketplace.visualstudio.com/items?itemName=arrterian.nix-env-selector You can set own shell.nix confix and all extensions the main process will get the env. It can be a little buggy at the moment. But work still in progress

mschuwalow commented 5 years ago

@arrterian Very cool stuff! Thanks for pinging me.

Dessix commented 1 year ago

The above solution is no longer functional over Remote-SSH, and I've been - so far - unable to find an alternative solution beyond switching to something like VSCode Tunnel (and thus non-local traffic) or DevContainers (losing the environment benefits of Nix).

Does anyone have a currently-functioning solution for this problem? If not, this may be something worth looking into for feature-level support.