Skip to content
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

Closed
joaomoreno opened this issue Nov 28, 2023 · 5 comments
Closed

Outgoing counter doesn't update when committing #199310

joaomoreno opened this issue Nov 28, 2023 · 5 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug scm General SCM compound issues verified Verification succeeded
Milestone

Comments

@joaomoreno
Copy link
Member

Testing #199177

image
  1. In the integrated terminal run git commit --allow-empty -m foo. Notice the outgoing section comes up with 1 as the counter
  2. Run it again. Notice the sync button updates to show 2, but the outgoing section still shows 1
@joaomoreno
Copy link
Member Author

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 ?

@lszomoru lszomoru added scm General SCM compound issues bug Issue identified by VS Code Team member as probable bug labels Nov 28, 2023
@lszomoru lszomoru added this to the November 2023 milestone Nov 28, 2023
@lszomoru
Copy link
Member

@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?

@lszomoru
Copy link
Member

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 🤔

repositoryDisposables.add(repository.provider.historyProvider.onDidChangeCurrentHistoryItemGroup(() => this.historyProviderCache.delete(repository)));
}

@lszomoru
Copy link
Member

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!

@joaomoreno
Copy link
Member Author

I did check at the time, and there were no devtools errors. 👌 Will try to break it again today!

@eleanorjboyd eleanorjboyd added the verified Verification succeeded label Nov 30, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug scm General SCM compound issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants