-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Retain the selection after tree refresh #33371
Comments
It is not true in all custom views. Looks like this is having a command that is causing this. |
Ok then it should maybe move into the docker repository. |
i'm refreshing the tree every second :( |
I see may be I should retain the selection after refresh. I should have a fallback if the selected item is gone after refresh |
Yeah, it would be great if it was retained -- expand/collapsed state too. While it would great for the view to do this itself, at least having a new API where the extension could attempt to maintain it would also work (though obviously more work on the part of the extension). But an API for it could be valuable in other situations where you might want to cause selection in the tree. Of course that would also have to deal with expansion too for nested things. |
Noooo - Backlog 😢 Is there another way around this? Right now an extension can't even maintain its selection so there is no way to get a better experience. |
@eamodio I do not want to assign to a milestone and give false hopes. Actually I would collect the next set of features for tree views and discuss for our plan and assign the milestone. |
I'm bumping the severity of this since it makes the tree very difficult to use for users. |
This is a severe bug not a feature. |
Fixed by cb926d5 |
While verifying the fix with my extension, I've noticed that the selection is only retained if the label of the tree node does not change. If the label changes (e.g. because one part of it reflects a status), the selection is still lost. I've created issue #40018 for this. |
Steps to Reproduce:
=> focus is shortly removed out of the view
=> focus should stay so that keyboard interaction is possible
The text was updated successfully, but these errors were encountered: