1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

vscode: add profiles support (#5640)

Adds support for VSCode Profiles configuration. Allowing you to define custom extensions and settings per profile.
This commit is contained in:
Reputable2772 2025-02-22 22:28:27 +05:30 committed by GitHub
parent 4949081d1e
commit e860bd49ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 337 additions and 144 deletions

View file

@ -52,12 +52,12 @@ in {
};
config = mkIf cfg.enable {
programs.vscode.userSettings = mkIf cfg.hie.enable {
programs.vscode.profiles.default.userSettings = mkIf cfg.hie.enable {
"languageServerHaskell.enableHIE" = true;
"languageServerHaskell.hieExecutablePath" = cfg.hie.executablePath;
};
programs.vscode.extensions =
programs.vscode.profiles.default.extensions =
[ pkgs.vscode-extensions.justusadam.language-haskell ]
++ lib.optional cfg.hie.enable
pkgs.vscode-extensions.alanz.vscode-hie-server;