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
|
@ -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.
|
||||
# Links every dir in path to the extension path.
|
||||
mapAttrsToList (k: v:
|
||||
{
|
||||
"${extensionPath}/${k}".source = "${p}/${k}";
|
||||
}) (builtins.readDir p);
|
||||
"${extensionPath}/${k}".source = "${path}/${k}";
|
||||
}) (builtins.readDir path);
|
||||
toSymlink = concatMap toPaths cfg.extensions;
|
||||
in
|
||||
foldr
|
||||
|
|
Loading…
Reference in a new issue