You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-prioritytree-viewsExtension tree view issuesverifiedVerification succeeded
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.
Eric Amodio (@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.
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.
bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-prioritytree-viewsExtension tree view issuesverifiedVerification succeeded
Activity
sandy081 commentedon Aug 29, 2017
It is not true in all custom views. Looks like this is having a command that is causing this.
bpasero commentedon Aug 29, 2017
Ok then it should maybe move into the docker repository.
chrisdias commentedon Aug 29, 2017
i'm refreshing the tree every second :(
sandy081 commentedon Aug 30, 2017
I see may be I should retain the selection after refresh. I should have a fallback if the selected item is gone after refresh
[-]Contributed view: clicking into entry removes focus[/-][+]Retain the selection after tree refresh[/+]eamodio commentedon Sep 1, 2017
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.
eamodio commentedon Sep 25, 2017
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.
sandy081 commentedon Sep 26, 2017
Eric Amodio (@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.
weinand commentedon Nov 29, 2017
I'm bumping the severity of this since it makes the tree very difficult to use for users.
weinand commentedon Nov 29, 2017
This is a severe bug not a feature.
sandy081 commentedon Dec 3, 2017
Fixed by cb926d5
weinand commentedon Dec 11, 2017
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.