Skip to content

chore: optimize vscode extension bundle size and fix css conflicts - #846

Merged
will-lamerton merged 4 commits into
Nano-Collective:mainfrom
akramcodez:chore/vscode-ignore-files
Aug 12, 2026
Merged

will-lamerton merged 4 commits into
Nano-Collective:mainfrom
akramcodez:chore/vscode-ignore-files

Conversation

@akramcodez

Copy link
Copy Markdown
Member

Description

This PR fixes two important configuration issues with the VS Code extension:

  1. Added .vscodeignore: Previously, running vsce package would bundle the entire src/, node_modules/, and configuration files into the .vsix extension package. Since the extension is bundled via esbuild, these files are redundant. The new .vscodeignore drastically reduces the final bundle size.
  2. Added chat-panel.css to .gitignore: The CSS file is generated dynamically via Tailwind during vscode:prepublish and pnpm run build. Ignoring it prevents recurring merge conflicts for contributors modifying the CSS/UI.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Changeset

  • Added a changeset (pnpm changeset) describing this change for the changelog

Docs-only or internal chores need no changeset (or run pnpm changeset --empty to note that intentionally).

Testing

Automated Tests

  • New features include passing tests in .spec.ts/tsx files
  • All existing tests pass (pnpm test:all completes successfully)
  • Tests cover both success and error scenarios

Manual Testing

  • Tested with Ollama
  • Tested with OpenRouter
  • Tested with OpenAI-compatible API
  • Tested MCP integration (if applicable)

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)
  • Appropriate logging added using structured logging (see CONTRIBUTING.md)

Copilot AI lite review requested due to automatic review settings August 11, 2026 10:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@will-lamerton

will-lamerton commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

Nice work @akramcodez - ironically there is a merge conflict to resolve then I'll merge haha

…-files

# Conflicts:
#	plugins/vscode/media/chat-panel.css
@will-lamerton
will-lamerton merged commit c74a246 into Nano-Collective:main Aug 12, 2026
11 checks passed
will-lamerton added a commit to arpan7sarkar/nanocoder that referenced this pull request Aug 13, 2026
Resolves the plugins/vscode/media/chat-panel.css conflict: Nano-Collective#846 made the
compiled CSS a build artifact (gitignored, emitted by `pnpm build:css`),
so take main's deletion. This branch only touched the file's trailing
newline - no CSS content is lost.
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.

3 participants