mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +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:
parent
0f11a79e02
commit
fe145b12cd
1 changed files with 5 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue