VSCodium

From NixOS Wiki
Revision as of 16:27, 3 January 2020 by imported>Raboof (document how to use vscode-with-extensions with vscodium)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

VSCodium is a build of Vscode without the proprietary bits that are included in the official Vscode distribution. See https://github.com/VSCodium/vscodium#readme for more background.

Managing extensions

Extensions can be managed using the 'vscode-with-extensions' package, mostly like for Vscode:

let
  extensions = (with pkgs.vscode-extensions; [
      bbenoist.Nix
      ms-python.python
      ms-azuretools.vscode-docker
    ]) ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
    {
      name = "remote-ssh";
      publisher = "ms-vscode-remote";
      version = "0.47.2";
      sha256 = "04niirbkrzsm4wk22pr5dcfymnhqq4vn25xwkf5xvbpw32v1bpp3";
    }
    {
      name = "remote-ssh-edit";
      publisher = "ms-vscode-remote";
      version = "0.47.2";
      sha256 = "1hp6gjh4xp2m1xlm1jsdzxw9d8frkiidhph6nvl24d0h8z34w49g";
    }
  ];
  vscodium-with-extensions = pkgs.vscode-with-extensions.override {
    vscode = pkgs.vscodium;
    vscodeExtensions = extensions;
  };
in
  environment.systemPackages = [
    vscodium-with-extensions
  ];

Please note that some Visual Studio Code extensions have licenses that restrict their use to the official Visual Studio Code builds and therefore do not work with VSCodium. See this note on the VSCodium docs page for what's been found so far and possible workarounds.