Skip to content

[Bugfix #1022] Exclude .builders/node_modules from VSCode watch/search; drop test-runner recommendation - #1039

Merged
amrmelsayed merged 6 commits into
mainfrom
builder/bugfix-1022
Jun 12, 2026
Merged

[Bugfix #1022] Exclude .builders/node_modules from VSCode watch/search; drop test-runner recommendation#1039
amrmelsayed merged 6 commits into
mainfrom
builder/bugfix-1022

Conversation

@amrmelsayed

Copy link
Copy Markdown
Collaborator

Fixes #1022

Problem

Opening the repo in VSCode and accepting the recommended extensions installs ms-vscode.extension-test-runner. Its test discovery runs rg --files --hidden --no-require-git --no-ignore --follow ..., which skips .gitignore and chases symlinks, so on a workspace with builder worktrees it walks every .builders/*/node_modules pnpm symlink farm. With ~15 worktrees this spawns a flood of rg processes and pegs CPU for ~30s at a time, recurring on file changes.

Fix

  • .vscode/settings.json: add files.watcherExclude and extend search.exclude with **/.builders/** and **/node_modules/**. Defense-in-depth: any tool VSCode drives (search, quick-open, other extensions) stops traversing the worktree farm.
  • .vscode/extensions.json: remove ms-vscode.extension-test-runner from recommendations. dbaeumer.vscode-eslint and connor4312.esbuild-problem-matchers are kept; the file stays.
  • packages/vscode/vsc-extension-quickstart.md: the setup line now lists the actual recommended extensions (it previously also named amodio.tsl-problem-matcher, which was never in extensions.json), and the "Run tests" section notes the test runner is install-on-demand and why.

Regression test

packages/codev/src/__tests__/bugfix-1022-vscode-dev-config.test.ts guards both invariants: the test-runner extension is never re-recommended, and .builders/node_modules stay excluded from both watcher and search.

Verification

  • New regression test passes.
  • porch check: build ✓, full test suite ✓.

🤖 Generated with Claude Code

…search, drop test-runner recommendation

- Add files.watcherExclude and extend search.exclude in .vscode/settings.json
  with **/.builders/** and **/node_modules/** so VSCode and any tool it
  drives stop walking the builder worktree farm
- Remove ms-vscode.extension-test-runner from .vscode/extensions.json
  recommendations (its discovery runs rg --no-ignore --follow over the
  whole tree, pegging CPU on workspaces with builder worktrees)
- Update packages/vscode/vsc-extension-quickstart.md to match the actual
  recommendations and note why the test runner is install-on-demand
- Add regression test guarding both config invariants
@amrmelsayed
amrmelsayed merged commit a15d11c into main Jun 12, 2026
6 checks passed
@amrmelsayed
amrmelsayed deleted the builder/bugfix-1022 branch June 12, 2026 23:31
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.

VSCode dev config: exclude .builders/ + node_modules from watch/search; drop Extension Test Runner recommendation

1 participant