Fix .vscodeignore — exclude dev-only directories from VSIX package#572
Merged
tnaum-ms merged 2 commits intofeature/shell-integrationfrom Apr 13, 2026
Merged
Conversation
Add missing exclusion rules for directories added after the initial .vscodeignore was written: - api/** (separate Node.js project with own node_modules) - docs/** (planning/analysis docs) - packages/** (monorepo source packages, already bundled) - dist/** (replace dist/test/** - dev-mode webpack output) - .config/** and .devcontainer/** (dev environment config) - work-summary.md, progress.md (dev notes) - extension.bundle.ts, main.ts (dev entry points) Fixes VSIX bloat from ~25 MB to expected ~5-6 MB. Agent-Logs-Url: https://github.com/microsoft/vscode-documentdb/sessions/19fbdfe6-d2e8-4402-9238-f406db045f56 Co-authored-by: tnaum-ms <171359267+tnaum-ms@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix .vscodeignore to exclude dev-only directories from VSIX package
Fix .vscodeignore — exclude dev-only directories from VSIX package
Apr 13, 2026
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.
Local
vsce packageproduces a 25.6 MB VSIX instead of ~5 MB. The.vscodeignoreis missing exclusion rules for directories added after it was originally written.Added exclusions
api/**— separate Node.js project with its own 70 MBnode_modules; built output consumed at build time, not runtimedist/**— dev-mode webpack output (unminified); CI packages from withindist/, so this exclusion only affects local builds. Replaces the previousdist/test/**docs/**,packages/**— planning docs and monorepo source packages already bundled by webpack.config/**,.devcontainer/**— dev environment configwork-summary.md,progress.md,extension.bundle.ts,main.ts— dev notes and source files (latter two also covered by existing*.tsglob)Entry point
main.js("main": "./main") is unaffected.