Revert "vscode: fix extension path symlink error"

This reverts commit fe145b12cd.

Turns out the change does not apply to Nixpkgs 20.03 [1].

[1] https://github.com/rycee/home-manager/pull/1100#issuecomment-621506706
This commit is contained in:
Robert Helgesson 2020-04-30 09:44:00 +02:00
parent 98fa8f63b8
commit a378bccd60
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -78,11 +78,14 @@ in
home.file = home.file =
let let
toPaths = path: toPaths = path:
# Links every dir in path to the extension path. let
mapAttrsToList (k: v: p = "${path}/share/vscode/extensions";
{ in
"${extensionPath}/${k}".source = "${path}/${k}"; # Links every dir in p to the extension path.
}) (builtins.readDir path); mapAttrsToList (k: v:
{
"${extensionPath}/${k}".source = "${p}/${k}";
}) (builtins.readDir p);
toSymlink = concatMap toPaths cfg.extensions; toSymlink = concatMap toPaths cfg.extensions;
in in
foldr foldr