From 711109d468aa72d327dc1d2f8beabbfe6d061085 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Fri, 6 Dec 2019 14:00:28 +0100 Subject: [PATCH] vscode: correct VSCodium extension directory path --- modules/programs/vscode.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/programs/vscode.nix b/modules/programs/vscode.nix index b77e7248b..cf7ac7222 100644 --- a/modules/programs/vscode.nix +++ b/modules/programs/vscode.nix @@ -14,6 +14,12 @@ let "vscodium" = "VSCodium"; }.${vscodePname}; + extensionDir = { + "vscode" = "vscode"; + "vscode-insiders" = "vscode-insiders"; + "vscodium" = "vscode-oss"; + }.${vscodePname}; + configFilePath = if pkgs.stdenv.hostPlatform.isDarwin then "Library/Application Support/${configDir}/User/settings.json" @@ -21,7 +27,7 @@ let "${config.xdg.configHome}/${configDir}/User/settings.json"; # TODO: On Darwin where are the extensions? - extensionPath = ".${vscodePname}/extensions"; + extensionPath = ".${extensionDir}/extensions"; in {