-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Outgoing counter doesn't update when committing #199310
Comments
This might actually be specific to empty commits only. I can't repro when commits actually have changes. Also, the whole tree breaks down, not just the counter. Related to #199311 ? |
@joaomoreno, I am unable to repro with empty commits but this seems like an issue that I have trying to track down for a long time where the Incoming/Outgoing changes information is not getting updated following an action (ex: checkout, commit, sync changes). If you have a repro I would love to take a look. My current theory at the moment is that the cache invalidation does not occur as expected. Does the counter gets fixed if you press the Refresh button? |
Investigated more and I was able to further debug the issue. It looks like something happens and this event handle is removed from the list of listeners. When we get into this state, even pressing "Refresh" will not help as the cache will not be cleared due to the missing listener 🤔 vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.ts Lines 3474 to 3475 in 777ece7
|
I have tracked down an issue (checking out a tag or a detached commit) that would get the tree in a bad state. I am hoping that this also addresses the issue in which the tree is not being refreshed. Closing this issue but please let me know if you can reproduce again. If so, please check the dev tools console to see if any exception was thrown. Thanks! |
I did check at the time, and there were no devtools errors. 👌 Will try to break it again today! |
Testing #199177
git commit --allow-empty -m foo
. Notice the outgoing section comes up with1
as the counter2
, but the outgoing section still shows1
The text was updated successfully, but these errors were encountered: