Skip to content

fix: Fix the VSCode build GitHub Action#9

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-vscode-build-action
Draft

fix: Fix the VSCode build GitHub Action#9
Copilot wants to merge 2 commits intomainfrom
copilot/fix-vscode-build-action

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 31, 2026

The build-vsix workflow was failing due to a missing dist/ directory, dependency snapshot API errors, and a potential git diff failure against main in shallow checkouts.

Changes

  • Create dist/ before packaging: Added mkdir -p dist step prior to vsce package. The packager writes to ../dist/ relative to vscode-extension/, which doesn't exist in a fresh checkout.
  • Disable dependency graph submission: Set dependency-graph: disabled on actions/setup-node@v4 to stop npm snapshot submission to GitHub's Dependency Snapshot API.
  • Full history checkout: Added fetch-depth: 0 to actions/checkout@v5 so all remote refs (including main) are available locally, preventing fatal: ambiguous argument 'main' errors in any git diff operations.

Copilot AI linked an issue Mar 31, 2026 that may be closed by this pull request
- 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 AI requested a review from alxayo March 31, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Fix the VSCode build GitHub Action

2 participants