From 21c68bb2f2bfba559e354e956a2ffaa48dccf762 Mon Sep 17 00:00:00 2001 From: Bill Sun Date: Tue, 17 Mar 2020 22:40:21 -0700 Subject: [PATCH] vscode: fix extension path symlink error Fix extension path symlink error caused by [1], which removes `/share/{wrappedPkgName}/extensions` from the extension install path. [1] https://github.com/NixOS/nixpkgs/pull/71251 PR #1100 --- modules/programs/vscode.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/modules/programs/vscode.nix b/modules/programs/vscode.nix index cf7ac7222109..28f92cef7351 100644 --- a/modules/programs/vscode.nix +++ b/modules/programs/vscode.nix @@ -78,14 +78,11 @@ in home.file = let toPaths = path: - let - p = "${path}/share/vscode/extensions"; - in - # Links every dir in p to the extension path. - mapAttrsToList (k: v: - { - "${extensionPath}/${k}".source = "${p}/${k}"; - }) (builtins.readDir p); + # Links every dir in path to the extension path. + mapAttrsToList (k: v: + { + "${extensionPath}/${k}".source = "${path}/${k}"; + }) (builtins.readDir path); toSymlink = concatMap toPaths cfg.extensions; in foldr