Skip to content

chore(vscode): add worktree debug launch config#830

Open
lukecotter wants to merge 1 commit into
certinia:mainfrom
lukecotter:chore-run-ext-host-for-folder
Open

chore(vscode): add worktree debug launch config#830
lukecotter wants to merge 1 commit into
certinia:mainfrom
lukecotter:chore-run-ext-host-for-folder

Conversation

@lukecotter

Copy link
Copy Markdown
Collaborator

📝 PR Overview

Adds a Run Extension (Worktree) debug configuration so a git worktree's build can be launched and debugged from the root VS Code window, without opening each worktree in its own window.

🛠️ Changes made

  • Add a Run Extension (Worktree) launch config that prompts for a worktree path and loads that checkout's lana in the Extension Development Host (breakpoints intact).
  • Drive the path via a ${input:worktree} promptString (${workspaceFolder}/${input:worktree}/lana) instead of hardcoding .claude/worktrees/, so Claude Code worktrees and ../sibling checkouts both work.
  • Pre-fill .claude/worktrees/ as the input default for convenience — overridable per launch, so the config stays location-agnostic.

🧩 Type of change (check all applicable)

  • 🐛 Bug fix - something not working as expected
  • ✨ New feature – adds new functionality
  • ♻️ Refactor - internal changes with no user impact
  • ⚡ Performance Improvement
  • 📝 Documentation - README or documentation site changes
  • 🔧 Chore - dev tooling, CI, config
  • 💥 Breaking change

📷 Screenshots / gifs / video [optional]

No UI changes.

🔗 Related Issues

None.

✅ Tests added?

  • 👍 yes
  • 🙅 no, not needed
  • 🙋 no, I need help

📚 Docs updated?

  • 🔖 README.md
  • 🔖 CHANGELOG.md
  • 📖 help site
  • 🧪 Marked any pre-release-only features (README 🧪 badge — see RELEASING.md)
  • 🙅 not needed

Anything else we need to know? [optional]

The matching watch: worktree task lives in .vscode/tasks.json, which is git-ignored, so it is intentionally not part of this PR.

- add "Run Extension (Worktree)" config that prompts for a repo-root-relative
worktree path, so any checkout (e.g. .claude/worktrees/<name> or a ../sibling) can
be debugged from the root window
- pre-fill .claude/worktrees/ via the input default rather than hardcoding it into
the path template, keeping the config location-agnostic
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.

2 participants