Skip to content

Fix .vscodeignore — exclude dev-only directories from VSIX package#572

Merged
tnaum-ms merged 2 commits intofeature/shell-integrationfrom
copilot/fix-vscodeignore-exclude-dev-directories
Apr 13, 2026
Merged

Fix .vscodeignore — exclude dev-only directories from VSIX package#572
tnaum-ms merged 2 commits intofeature/shell-integrationfrom
copilot/fix-vscodeignore-exclude-dev-directories

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 13, 2026

Local vsce package produces a 25.6 MB VSIX instead of ~5 MB. The .vscodeignore is missing exclusion rules for directories added after it was originally written.

Added exclusions

  • api/** — separate Node.js project with its own 70 MB node_modules; built output consumed at build time, not runtime
  • dist/** — dev-mode webpack output (unminified); CI packages from within dist/, so this exclusion only affects local builds. Replaces the previous dist/test/**
  • docs/**, packages/** — planning docs and monorepo source packages already bundled by webpack
  • .config/**, .devcontainer/** — dev environment config
  • work-summary.md, progress.md, extension.bundle.ts, main.ts — dev notes and source files (latter two also covered by existing *.ts glob)

Entry point main.js ("main": "./main") is unaffected.

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
Copilot AI requested a review from tnaum-ms April 13, 2026 09:24
@tnaum-ms tnaum-ms marked this pull request as ready for review April 13, 2026 09:30
@tnaum-ms tnaum-ms requested a review from a team as a code owner April 13, 2026 09:30
@tnaum-ms tnaum-ms merged commit ffec6f5 into feature/shell-integration Apr 13, 2026
5 checks passed
@tnaum-ms tnaum-ms deleted the copilot/fix-vscodeignore-exclude-dev-directories branch April 13, 2026 09:36
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 .vscodeignore — exclude dev-only directories from VSIX package

2 participants