letmaik / vscode-git-tree-compare

🎄 VS Code extension for comparing the git working tree against a branch, tag, or commit, displayed as folder tree
https://marketplace.visualstudio.com/items?itemName=letmaik.git-tree-compare
MIT License
60 stars 7 forks source link

Tree not updated after refresh #64

Closed letmaik closed 3 years ago

letmaik commented 4 years ago

The log indicates that the right git commands are run and the reported number of diff entries matches reality, but then "No tree changes" is printed and the tree is not updated.

segfault16 commented 4 years ago

Hi, I'm having the same issue. I need to change the base in order to see an updated tree

letmaik commented 4 years ago

@segfault16 If you can figure out how to make this reproducible (with a fresh repository) then I could potentially fix it.

letmaik commented 3 years ago

This should be solved now. The previous complex and likely faulty algorithm that partially updated tree nodes has been removed in favor of a simpler full refresh (which was already used for the new compacted and list modes). While this increases resource usage for very big diffs (hundreds of files) when having auto refresh enabled and causing tree changes, this scenario is sufficiently rare that it is not worth the effort of maintaining that complex code. On top of that, temporarily disabling auto refresh for such edge cases is always an option.