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

🐞 Clicking the branch picker for the first time shows no branches #1622

Closed
austincondiff opened this issue Mar 14, 2024 · 2 comments
Closed
Labels
bug Something isn't working source control toolbar
Milestone

Comments

@austincondiff
Copy link
Collaborator

austincondiff commented Mar 14, 2024

Description

When the user opens a folder with a git repository with multiple branches, and clicks the branch picker in the toolbar under the title, only the current branch appears. Opening it subsequent times will show all of the branches.

To Reproduce

  1. Open a folder with a git repository and multiple branches
  2. Click the branch picker under the title in the toolbar
  3. Notice that only the current branch is displayed in the menu and no other branches
  4. Click away
  5. Open the branch picker again
  6. Notice that the other branches are now displayed.

Expected Behavior

All branches should show in the branch picker menu the first time it is opened.

Version Information

CodeEdit: 0.1.0
macOS: 14.0
Xcode: 15.0

@austincondiff
Copy link
Collaborator Author

@FezVrasta I know that you worked on this, would you mind taking a look at this one?

@FezVrasta
Copy link
Contributor

I think the problem is that the list of branches comes asynchronously and for some reason the dropdown is not re-rendering when the data finally comes. I'm not sure how to address this problem though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working source control toolbar
Projects
Status: 🏁 Complete
Development

No branches or pull requests

3 participants