From a378bccd609c159fa8d421233b9c5eae04f02042 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Thu, 30 Apr 2020 09:44:00 +0200 Subject: [PATCH] Revert "vscode: fix extension path symlink error" This reverts commit fe145b12cd6bcf111f2dd3a36124a3dbce80d9b3. Turns out the change does not apply to Nixpkgs 20.03 [1]. [1] https://github.com/rycee/home-manager/pull/1100#issuecomment-621506706 --- modules/programs/vscode.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/programs/vscode.nix b/modules/programs/vscode.nix index 28f92cef..cf7ac722 100644 --- a/modules/programs/vscode.nix +++ b/modules/programs/vscode.nix @@ -78,11 +78,14 @@ in home.file = let toPaths = path: - # Links every dir in path to the extension path. - mapAttrsToList (k: v: - { - "${extensionPath}/${k}".source = "${path}/${k}"; - }) (builtins.readDir 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); toSymlink = concatMap toPaths cfg.extensions; in foldr