mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-22 02:09:39 +01:00
vscode: fix version checks when using Windsurf (#7285)
This commit is contained in:
parent
0edffd088e
commit
28eef8722d
1 changed files with 18 additions and 2 deletions
|
|
@ -438,7 +438,16 @@ in
|
||||||
lib.concatMap toPaths (flatten (mapAttrsToList (n: v: v.extensions) cfg.profiles))
|
lib.concatMap toPaths (flatten (mapAttrsToList (n: v: v.extensions) cfg.profiles))
|
||||||
++
|
++
|
||||||
lib.optional
|
lib.optional
|
||||||
((lib.versionAtLeast vscodeVersion "1.74.0" || vscodePname == "cursor") && defaultProfile != { })
|
(
|
||||||
|
(
|
||||||
|
lib.versionAtLeast vscodeVersion "1.74.0"
|
||||||
|
|| builtins.elem vscodePname [
|
||||||
|
"cursor"
|
||||||
|
"windsurf"
|
||||||
|
]
|
||||||
|
)
|
||||||
|
&& defaultProfile != { }
|
||||||
|
)
|
||||||
{
|
{
|
||||||
# Whenever our immutable extensions.json changes, force VSCode to regenerate
|
# Whenever our immutable extensions.json changes, force VSCode to regenerate
|
||||||
# extensions.json with both mutable and immutable extensions.
|
# extensions.json with both mutable and immutable extensions.
|
||||||
|
|
@ -461,7 +470,14 @@ in
|
||||||
paths =
|
paths =
|
||||||
(flatten (mapAttrsToList (n: v: v.extensions) cfg.profiles))
|
(flatten (mapAttrsToList (n: v: v.extensions) cfg.profiles))
|
||||||
++ lib.optional (
|
++ lib.optional (
|
||||||
(lib.versionAtLeast vscodeVersion "1.74.0" || vscodePname == "cursor") && defaultProfile != { }
|
(
|
||||||
|
lib.versionAtLeast vscodeVersion "1.74.0"
|
||||||
|
|| builtins.elem vscodePname [
|
||||||
|
"cursor"
|
||||||
|
"windsurf"
|
||||||
|
]
|
||||||
|
)
|
||||||
|
&& defaultProfile != { }
|
||||||
) (extensionJsonFile "default" (extensionJson defaultProfile.extensions));
|
) (extensionJsonFile "default" (extensionJson defaultProfile.extensions));
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue