From d554f9f1e17b1ff2e1a215235e2a4cdc8263dde5 Mon Sep 17 00:00:00 2001 From: Amethyst Shen <186444718+ameszy@users.noreply.github.com> Date: Sat, 11 Jan 2025 11:47:05 -0500 Subject: [PATCH] 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. --- modules/programs/vscode.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/programs/vscode.nix b/modules/programs/vscode.nix index f77937d66..dcba2fd34 100644 --- a/modules/programs/vscode.nix +++ b/modules/programs/vscode.nix @@ -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};