vscode: correct VSCodium extension directory path

This commit is contained in:
Konrad Borowski 2019-12-06 14:00:28 +01:00 committed by Robert Helgesson
parent ed9a6e34ad
commit 711109d468
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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
{