Skip to content

chore: exclude dev artifacts from extension package#915

Merged
EhabY merged 1 commit intomainfrom
fix/vscodeignore-exclude-dev-artifacts
Apr 21, 2026
Merged

chore: exclude dev artifacts from extension package#915
EhabY merged 1 commit intomainfrom
fix/vscodeignore-exclude-dev-artifacts

Conversation

@EhabY
Copy link
Copy Markdown
Collaborator

@EhabY EhabY commented Apr 21, 2026

Summary

Audited .vscodeignore against the actual repo contents and .gitignore. Found that .devcontainer/ (3 files) was being packaged into the .vsix unnecessarily, and several .gitignore entries had no corresponding .vscodeignore coverage.

Changes

Added to .vscodeignore:

Entry Why
.devcontainer/** Devcontainer config (Dockerfile, devcontainer.json, README) was shipping in the extension package
.pnpm-store/** Defensive — mirrors .gitignore; local pnpm store could leak if present
pnpm-debug.log Defensive — mirrors .gitignore; debug log could leak if present
*.vsix Defensive — mirrors .gitignore; prevents nesting built packages

Verification

vsce ls --no-dependencies before (17 files):

pgp-public.key, package.json, README.md, LICENSE, CHANGELOG.md,
media/tasks-logo.svg, media/shorthand-logo.svg, media/logo.png,
media/logo-white.svg, media/logo-black.svg, dist/extension.js,
.devcontainer/devcontainer.json,   ← shouldn't be here
.devcontainer/README.md,           ← shouldn't be here
.devcontainer/Dockerfile,          ← shouldn't be here
dist/webviews/tasks/index.js, dist/webviews/tasks/index.css,
dist/webviews/tasks/codicon.ttf

After (14 files): .devcontainer/ removed, everything else unchanged.


🤖 Generated with Coder Agents

Add missing entries to .vscodeignore:

- .devcontainer/** — devcontainer config was being included in the .vsix
- .pnpm-store/** — local pnpm store could leak if present
- pnpm-debug.log — debug log could leak if present
- *.vsix — prevent nesting built packages

The .devcontainer/ exclusion is the only one with an observable effect
(removes 3 files from the package). The others are defensive, mirroring
.gitignore entries that vsce only implicitly respects.
@matifali matifali changed the title fix: exclude dev artifacts from extension package chore: exclude dev artifacts from extension package Apr 21, 2026
@EhabY EhabY merged commit 98048f2 into main Apr 21, 2026
6 checks passed
@EhabY EhabY deleted the fix/vscodeignore-exclude-dev-artifacts branch April 21, 2026 13:24
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.

2 participants