Skip to content

[Repo Assist] chore: improve .vscodeignore to reduce extension package size#112

Draft
github-actions[bot] wants to merge 1 commit into
masterfrom
repo-assist/eng-vscodeignore-2026-03-28-5ade35cee27010bf
Draft

[Repo Assist] chore: improve .vscodeignore to reduce extension package size#112
github-actions[bot] wants to merge 1 commit into
masterfrom
repo-assist/eng-vscodeignore-2026-03-28-5ade35cee27010bf

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

🤖 This is an automated draft PR from Repo Assist, an AI assistant.

Summary

Adds four missing exclusions to .vscodeignore, reducing the size of the published extension package and keeping CI/VCS metadata out of users' extension installs.

Changes

Added exclusion Reason
.github/** CI workflow files have no place in a published VS Code extension
node_modules/** Safety net — the extension has no runtime deps, but explicit exclusion is good practice and guards against accidental installs
.gitattributes VCS metadata not needed by end users
images/phpcbf-preview.gif Animated README preview (~160 KB); only the logo.png icon (referenced in package.json) is needed at runtime

The images/logo.png extension icon remains included, as it is referenced by "icon": "images/logo.png" in package.json.

Why This Matters

When vsce package bundles the extension, it respects .vscodeignore. Without these entries, .github/workflows/, node_modules/, .gitattributes, and the large preview GIF are all bundled into the .vsix and distributed to every user who installs the extension. This is wasted bytes and potentially confusing.

Test Status

Unit tests pass: node --test test/unit.test.js — 7/7 tests pass
Syntax check: node --check extension.js — no syntax errors
⚠️ Integration tests: Require a GUI/VS Code environment — not runnable in CI. This change does not affect runtime behaviour.

Generated by Repo Assist ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@346204513ecfa08b81566450d7d599556807389f

Add missing exclusions to .vscodeignore:
- .github/**:      workflow files have no place in the published extension
- node_modules/**: safety net; no runtime deps but explicit is safer
- .gitattributes:  VCS metadata, not needed by end users
- images/phpcbf-preview.gif: README-only animated preview (~160 KB)

The logo.png (referenced as "icon" in package.json) is kept.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants