1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-01-30 12:55:02 +01:00

vscode: fix extensions dir path

On macOS, vscode-insiders (via pkgs.vscode.override { isInsiders = true; }) reads extension configuration from (and write to) .vscode/extensions/extensions.json, not under the .vscode-insiders folder.
This commit affects only macOS since the author doesn't know and has no device to test the behaviour on other platform like linux.
This commit is contained in:
Amethyst Shen 2025-01-11 11:47:05 -05:00 committed by GitHub
parent 2532b500c3
commit d554f9f1e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,8 @@ let
extensionDir = {
"vscode" = "vscode";
"vscode-insiders" = "vscode-insiders";
"vscode-insiders" =
if pkgs.stdenv.hostPlatform.isDarwin then "vscode" else "vscode-insiders";
"vscodium" = "vscode-oss";
"openvscode-server" = "openvscode-server";
}.${vscodePname};