Skip to content

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

Closed

Description

@austincondiff

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

Activity

  1. moved this from 🆕 New to 📋 Todo in CodeEdit Projecton Mar 14, 2024
  2. austincondiff commented on Mar 14, 2024

    @austincondiff
    CollaboratorAuthor

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

  3. FezVrasta commented on Mar 15, 2024

    @FezVrasta
    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.

  4. moved this from 📋 Todo to 🏁 Complete in CodeEdit Projecton Mar 19, 2024
  5. added this to the v0.2.0 milestone on Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions