vscode: theme default profile by default (#1015)

This commit is contained in:
Flameopathic 2025-03-23 14:12:42 -04:00 committed by GitHub
parent a55488c247
commit d9df91c556
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View file

@ -38,7 +38,7 @@ in
profileNames = lib.mkOption {
description = "The VSCode profile names to apply styling on.";
type = lib.types.listOf lib.types.str;
default = [ ];
default = [ "default" ];
};
};
@ -47,6 +47,6 @@ in
warnings =
lib.optional (config.programs.vscode.enable && cfg.profileNames == [ ])
''stylix: vscode: `config.stylix.targets.vscode.profileNames` is not set. Declare profile names with 'config.stylix.targets.vscode.profileNames = [ "<PROFILE_NAME>" ];'.'';
''stylix: vscode: `config.stylix.targets.vscode.profileNames` is empty. No theming will be applied. Add a profile or disable this warning by setting `stylix.targets.vscode.enable = false`.'';
};
}

View file

@ -16,7 +16,5 @@ in
enable = true;
inherit package;
};
stylix.targets.vscode.profileNames = [ "default" ];
};
}