Unverified Commit 004258bf authored by superherointj's avatar superherointj Committed by GitHub
Browse files

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

vscode-utils: Set the sourceRoot attribute on vscode extensions
parents 3d250b83 8f384467
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;