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:
parent
6266e351d4
commit
a3c79143c5
1 changed files with 14 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue