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