Draft
Conversation
- Add fetch-depth: 0 to checkout step to ensure full git history is available, preventing 'ambiguous argument main' errors in git diff - Add dependency-graph: disabled to setup-node step to stop dependency snapshot submission to GitHub's Dependency Snapshot API - Add 'mkdir -p dist' step before VSIX packaging to create the output directory, fixing ENOENT error when vsce tries to write the .vsix file Agent-Logs-Url: https://github.com/alxayo/sec-check/sessions/42e7b353-3419-4602-a7c9-1ac7c7a38a5c Co-authored-by: alxayo <2588978+alxayo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix VSCode build GitHub Action
fix: Fix the VSCode build GitHub Action
Mar 31, 2026
Copilot stopped work on behalf of
alxayo due to an error
March 31, 2026 20:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
build-vsixworkflow was failing due to a missingdist/directory, dependency snapshot API errors, and a potentialgit difffailure againstmainin shallow checkouts.Changes
dist/before packaging: Addedmkdir -p diststep prior tovsce package. The packager writes to../dist/relative tovscode-extension/, which doesn't exist in a fresh checkout.dependency-graph: disabledonactions/setup-node@v4to stop npm snapshot submission to GitHub's Dependency Snapshot API.fetch-depth: 0toactions/checkout@v5so all remote refs (includingmain) are available locally, preventingfatal: ambiguous argument 'main'errors in anygit diffoperations.