Jump to content

Visual Studio Code: Difference between revisions

no edit summary
imported>Samuela
No edit summary
imported>Samuela
No edit summary
Line 16: Line 16:
$ code
$ code
</syntaxHighlight>
</syntaxHighlight>
As a normal user, you might be curious what stuff you have installed. To find out, do:
<syntaxHighlight lang=console>
$ nix-env -q
</syntaxHighlight>
Also, if you want to uninstall stuff that you installed there as a normal user, do:
<syntaxHighlight lang=console>
$ nix-env --uninstall package-name-here
</syntaxHighlight>
Replace the package-name-here with whatever package returned by 'nix-env -q'.


== Managing extensions ==
== Managing extensions ==
Line 59: Line 45:
We can retrieve an updated set for manually installed / specified packages by cloning the 'nixpkgs' repo from github, and running: 'nixpkgs/pkgs/misc/vscode-extensions/update_installed_exts.sh'
We can retrieve an updated set for manually installed / specified packages by cloning the 'nixpkgs' repo from github, and running: 'nixpkgs/pkgs/misc/vscode-extensions/update_installed_exts.sh'


== remote-ssh ==
== Remote SSH ==


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).


=== Nix-sourced client to NixOS host ===
=== Nix-sourced VSCode to NixOS host ===


If vscode-remote is installed from nix (vscode-extensions.ms-vscode-remote as above) on the client machine, everything should "just work".
If vscode-remote is installed from nix (vscode-extensions.ms-vscode-remote as above) on the client machine, everything should "just work".
Anonymous user