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

🐞 Files on the project sidebar do not update correctly during git checkout, or if updated from Finder or an external editor/source #1974

Closed
suobset opened this issue Jan 22, 2025 · 1 comment
Labels
bug Something isn't working sidebar triage needed

Comments

@suobset
Copy link

suobset commented Jan 22, 2025

Description

If you checkout to a branch that is significantly different from the one you were on, the files in the project sidebar in CodeEdit do not update.

If files are added/removed from Finder, terminal, or any external editor, they do not update the sidebar either (even if the project does not have Git).

Git checkout from the editor itself, from the integrated zsh, or from an external zsh instance does not update files in the project sidebar. This functionality is essential for projects that utilize different branches for various project components.

To Reproduce

  1. Open any project with 2 branches that have different files.
  2. Checkout to a different branch

Even if you remain on the same branch, or don't even have git:

  1. Open any project in CodeEdit
  2. Use Finder or another editor to add a new file

The files do not update on the sidebar. Opening any file that is shared between the two branches work well. Opening a file that does not exist in the new branch (but did in the old branch, and so is present on the sidebar) leads to an infinite load time.

Expected Behavior

Either the sidebar should automatically show the new/updated files, or at least a refresh button should exist to read the directory and update accordingly. Git stash should be properly implemented. Any file in an open buffer that does not exist in the new branch can remain open as an independent file, which can be saved.

Version Information

CodeEdit: Version 0.3.3-alpha (44)
macOS: 15.1.1
Xcode: N/A, installed via .dmg

Additional Context

No response

Screenshots

Original branch

Image

New branch with an infinite loading loop and non-updated sidebar

Image

Files that the sidebar should contain

Image
@suobset suobset added the bug Something isn't working label Jan 22, 2025
@suobset suobset changed the title 🐞 Files on the project sidebar do not update correctly during git checkout 🐞 Files on the project sidebar do not update correctly during git checkout (or if updated from Finder) Jan 22, 2025
@suobset suobset changed the title 🐞 Files on the project sidebar do not update correctly during git checkout (or if updated from Finder) 🐞 Files on the project sidebar do not update correctly during git checkout, or if updated from Finder or an external editor/source Jan 22, 2025
@suobset
Copy link
Author

suobset commented Jan 24, 2025

Duplicated, already being worked on.

@suobset suobset closed this as completed Jan 24, 2025
@github-project-automation github-project-automation bot moved this from 🆕 New to 🏁 Complete in CodeEdit Project Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sidebar triage needed
Projects
Status: 🏁 Complete
Development

No branches or pull requests

1 participant