-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-root workspaces with two projects checked out to branches with open PRs either shows errors or misleading information #3490
Comments
There's some multi-repo support lacking in the "Changes in Pull Request #number" and "Active Pull Request (usually this view's title is the title of the PR)" views. 🪲 The "Changes in Pull Request" view will show all the PRs, but the title of the view will only mention 1 PR or mention a singular "Changes in Pull Request".
What do you think about this idea? |
* Don't show active PR view when there are multiple PRs Fixes #3490 * Fix compile error
New behavior:
|
Noticed #4007 for a single folder, not sure if it's part of this or not |
Basically if you're working in multi-root workspace with at least two projects, each one on a branch with an open PR, and then switch one of those branches, the GitHub PR sidebar either breaks (shows errors when trying to submit review) or displays mismatched info (making it easy to leave a review/decision on a PR that you didn't mean to).
I have a minimal reproduction using public repositories that have test PRs open. I'm happy to add collaborators to these test repos if you don't want to recreate them yourself.
cd
into itworkspace.code-workspace
containing:fix-on-1
with an open PRfix-on-2
with an open PRThis is where the issues start. In particular the “GitHub Pull Request” sidebar has two panels, “Changes in pull request” and “Active pull request” which get mismatched depending on which actions are taken next:
At this point, due to the mismatched PRs, it becomes easy to leave a review or submit decisions for the wrong PRs (this has happened to me on more than one occasion). If you try to leave a review or take action on a PR for a branch that’s no longer checked out, you’ll get an error like the following:
This issue may be related to #3437. The only way I've managed to fix this is to either close and relaunch VS Code or to reload the VS Code window using the command palette.
The text was updated successfully, but these errors were encountered: