[Repo Assist] chore: improve .vscodeignore to reduce extension package size#112
Draft
github-actions[bot] wants to merge 1 commit into
Draft
Conversation
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>
This was referenced Mar 28, 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.
🤖 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
.github/**node_modules/**.gitattributesimages/phpcbf-preview.giflogo.pngicon (referenced inpackage.json) is needed at runtimeThe
images/logo.pngextension icon remains included, as it is referenced by"icon": "images/logo.png"inpackage.json.Why This Matters
When
vsce packagebundles the extension, it respects.vscodeignore. Without these entries,.github/workflows/,node_modules/,.gitattributes, and the large preview GIF are all bundled into the.vsixand distributed to every user who installs the extension. This is wasted bytes and potentially confusing.Test Status
✅ Unit tests pass:
⚠️ Integration tests: Require a GUI/VS Code environment — not runnable in CI. This change does not affect runtime behaviour.
node --test test/unit.test.js— 7/7 tests pass✅ Syntax check:
node --check extension.js— no syntax errors