vscode: Source Control bug when creating or changing branch in the workspace
Working with several projects in a workspace, I create and/or change a branch in one project and it creates and/or changes the branch for every project in the workspace.
https://user-images.githubusercontent.com/3662505/136525323-34b5d888-e06a-426c-a5c6-b039db4001d8.mov
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.61.0
- OS Version: macOS Big Sur 11.5.2
Steps to Reproduce:
- Open a workspace with several projects
- Try to create/change branch on one project
- It will create/change the branch for every project
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 42
- Comments: 26 (9 by maintainers)
Commits related to this issue
- disabled scm.showActionButton https://github.com/microsoft/vscode/issues/134638#issuecomment-938471497 — committed to microsoft/jacdac-docs by pelikhan 3 years ago
- fixes #134638 Co-authored-by: Ladislau <lszomoru@users.noreply.github.com> — committed to microsoft/vscode by joaomoreno 3 years ago
- fixes #134638 (#134881) Co-authored-by: Ladislau <lszomoru@users.noreply.github.com> Co-authored-by: Ladislau <lszomoru@users.noreply.github.com> — committed to microsoft/vscode by joaomoreno 3 years ago
Can you try disabling
scm.showActionButton
in your user settings to see if it fixes the problem?/assign @eamodio
Looks serious enough for a recovery release.
@mattseddon I confirm that disabling
scm.showActionButton
it fixes the problem for meIt also displays commits to be synced for both projects.
It should just display the commit for the project the commit actually belongs to.
@mattseddon Yes confirmed. It fixes the problem. ๐
Bug details:
When
repository.provider.onDidChange
fires, there are 3 listeners:Consider repo A and B. The problem arises when that event fires for repo B:
Patch fix is to check whether the template element has been disposed in the third listener.
Proper fix is to add fine grained events to
ISCMProvider.onDidChange
.Huge thanks to @gjsjohnmurray and @IllusionMH for helping out with the issue onslaught management. Youโre the real MVPs! ๐
Iโve pinned this issue, just so people can find it more easily instead of filing dupes.
I can confirm that even with Show Action Button disabled, I still get the jumping cursor on 1.61.1
https://www.dropbox.com/s/9rul5jjgs7zlq9v/Screen Recording 2021-10-15 at 09.09.56.mov?dl=0
A new version of vs code 1.61.1 has been released, this should fix this issue
Sorry about the delay on this one. I will take a look at this one first thing tomorrow morning.
Also, my previous idea at #132369 might have got enough extra eyes onto 1.61 during endgame week to have detected this particular problem before shipping. Itโs a only Backlog Candidate at the moment and currently needs 12 more upvotes to progress to Backlog. ๐
not fixed all bugs
I think focus change on list update is old issue with reports for 1.59.0 https://github.com/microsoft/vscode/issues/130204 1.53.2 https://github.com/microsoft/vscode/issues/116930 And 1.47.0 https://github.com/microsoft/vscode/issues/102498 that supposed to be fixed for staging files
Itโs better to keep track of focus in separate issue rather than in closed issue for related but different topic. #135143 is reported for latest version - please upvote it.