Visual Studio Code: Difference between revisions
imported>Bisserlis mNo edit summary |
imported>Samuela No edit summary |
||
Line 63: | Line 63: | ||
The remote-ssh extension works by connecting to a remote host and downloading scripts and pre-built binaries to {{ic|$HOME/.vscode-server}}. When first launching remote-ssh for a NixOS host the connection will fail due to the provided node.js not having been built for a NixOS system (the dynamic libraries aren't in the same place). | The remote-ssh extension works by connecting to a remote host and downloading scripts and pre-built binaries to {{ic|$HOME/.vscode-server}}. When first launching remote-ssh for a NixOS host the connection will fail due to the provided node.js not having been built for a NixOS system (the dynamic libraries aren't in the same place). | ||
This can be resolved by installing the <code>nodejs- | This can be resolved by installing the <code>nodejs-14_x</code> package on the NixOS host and replacing the VSCode provided version. | ||
=== Nix-sourced client to NixOS host === | === Nix-sourced client to NixOS host === | ||
Line 71: | Line 71: | ||
=== Any client to NixOS host === | === Any client to NixOS host === | ||
If the client's remote-ssh extension was installed from the VSCode store follow the instructions in https://github.com/microsoft/vscode-remote-release/issues/648#issuecomment-503148523. Note that nodejs needs to be updated according to VS Code upstream requirements (node | If the client's remote-ssh extension was installed from the VSCode store follow the instructions in https://github.com/microsoft/vscode-remote-release/issues/648#issuecomment-503148523. Note that nodejs needs to be updated according to VS Code upstream requirements (node 14 is needed as of 5/14/2021). | ||
Use [https://github.com/msteen/nixos-vscode-server nix-vscode-server] on host machines to automate the workaround. | |||
== Using nix-shell == | == Using nix-shell == |