1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-23 18:29:47 +01:00

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
This commit is contained in:
Bill Sun 2020-03-17 22:40:21 -07:00 committed by Robert Helgesson
parent 0f11a79e02
commit fe145b12cd
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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