-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Firing TreeDataProvider.onDidChangeTreeData(item) doesn't fully update the item #34789
Comments
@eamodio True. I see the need. Updating the complete item makes sense to me. |
Having the same issue here with the App Service extension - in order to update a single app setting node, I have to call refresh on the parent node which causes unnecessary trip to Azure. |
@weinand Any chance you'd consider this an important one too? 🤞 This one causes quite a bit of pain and needless refreshes. |
@eamodio I will look into this as part of the issue grooming effort. |
@eamodio yes, I'm suffering from this too but I did not add the label "important" because it does not affect the end-user experience. It is just a performance problem. |
Thank you both! |
@sandy081 I'm doing a happy dance! Thank you! 😄 |
It seems that firing the
TreeDataProvider.onDidChangeTreeData(item)
event only causes the item's children to get refreshed (item.getChildren
is called) and not the item itself (item.getTreeItem
is not called).This causes an issue if an extension is trying to update the label or icon of the item itself. For example, in GitLens I try to update an item which has a count in its label, but the only way to get that updated is to trigger an update of the item's parent (which causes a LOT more items to get updated and recalc'd).
//cc @sandy081
Reproduces without extensions: No
The text was updated successfully, but these errors were encountered: