Skip to content

Commit

Permalink
vscode-utils: allow lldb to be used as vscode extension again
Browse files Browse the repository at this point in the history
  • Loading branch information
pasqui23 committed Apr 19, 2024
1 parent 025d3a2 commit 5924e23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/applications/editors/vscode/extensions/vscode-utils.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,25 +108,25 @@ let

toExtensionJsonEntry = ext: rec {
identifier = {
id = ext.vscodeExtUniqueId;
id = ext.vscodeExtUniqueId or (lib.head (lib.attrNames (builtins.readDir "${ext}/share/vscode/extensions")));
uuid = "";
};

version = ext.version;
version = ext.version or (lib.getversion ext.name);

relativeLocation = ext.vscodeExtUniqueId;

location = {
"$mid" = 1;
fsPath = ext.outPath + "/share/vscode/extensions/${ext.vscodeExtUniqueId}";
fsPath = "${ext.outPath}/share/vscode/extensions/${identifier.id}";
path = location.fsPath;
scheme = "file";
};

metadata = {
id = "";
publisherId = "";
publisherDisplayName = ext.vscodeExtPublisher;
publisherDisplayName = ext.vscodeExtPublisher or (lib.head (lib.splitString ''\.'' identifier.id));
targetPlatform = "undefined";
isApplicationScoped = false;
updated = false;
Expand Down

0 comments on commit 5924e23

Please sign in to comment.