1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 13:39:46 +01:00

vscode: add backwards compatibility

Signed-off-by: Reputable2722 <153411261+Reputable2772@users.noreply.github.com>
This commit is contained in:
Reputable2722 2024-07-16 17:40:39 +05:30
parent 6266e351d4
commit a3c79143c5
No known key found for this signature in database

View file

@ -199,13 +199,25 @@ let
};
allProfiles = cfg.profiles ++ [ cfg.defaultProfile ];
in {
# TODO: Backwards compatibility with old options.
imports = [
(mkChangedOptionModule [ "programs" "vscode" "immutableExtensionsDir" ] [
"programs"
"vscode"
"mutableExtensionsDir"
] (config: !config.programs.vscode.immutableExtensionsDir))
] ++ map (v:
mkRenamedOptionModule [ "programs" "vscode" v ] [
"programs"
"vscode"
"defaultProfile"
v
]) [
"userSettings"
"userTasks"
"keybindings"
"extensions"
"languageSnippets"
"globalSnippets"
];
options.programs.vscode = {