Merge pull request #289721 from FraGag/vscode-extension-sourceroot

vscode-utils: Set the sourceRoot attribute on vscode extensions
This commit is contained in:
superherointj 2024-04-11 15:34:22 -03:00 committed by GitHub
commit 004258bf15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ let
inherit configurePhase buildPhase dontPatchELF dontStrip;
# Some .vsix files contain other directories (e.g., `package`) that we don't use.
# If other directories are present but `sourceRoot` is unset, the unpacker phase fails.
sourceRoot = "extension";
installPrefix = "share/vscode/extensions/${vscodeExtUniqueId}";
nativeBuildInputs = [ unzip ] ++ nativeBuildInputs;