Skip to content

Retain the selection after tree refresh #33371

Closed

Description

Steps to Reproduce:

  1. install docker extension
  2. click with the mouse into the contributed explorer

=> focus is shortly removed out of the view
=> focus should stay so that keyboard interaction is possible

flicker_chrome58

Activity

  1. sandy081 commented on Aug 29, 2017

    @sandy081
    Member

    It is not true in all custom views. Looks like this is having a command that is causing this.

  2. bpasero commented on Aug 29, 2017

    @bpasero
    ContributorAuthor

    Ok then it should maybe move into the docker repository.

  3. chrisdias commented on Aug 29, 2017

    @chrisdias
    Contributor

    i'm refreshing the tree every second :(

  4. sandy081 commented on Aug 30, 2017

    @sandy081
    Member

    I see may be I should retain the selection after refresh. I should have a fallback if the selected item is gone after refresh

  5. added
    feature-request
    on Aug 30, 2017
  6. changed the title [-]Contributed view: clicking into entry removes focus[/-] [+]Retain the selection after tree refresh[/+] on Aug 30, 2017
  7. eamodio commented on Sep 1, 2017

    @eamodio
    Contributor

    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.

  8. eamodio commented on Sep 25, 2017

    @eamodio
    Contributor

    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.

  9. sandy081 commented on Sep 26, 2017

    @sandy081
    Member

    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.

  10. weinand commented on Nov 29, 2017

    @weinand
    Contributor

    I'm bumping the severity of this since it makes the tree very difficult to use for users.

  11. added
    important
    bug
    and removed
    feature-request
    on Nov 29, 2017
  12. weinand commented on Nov 29, 2017

    @weinand
    Contributor

    This is a severe bug not a feature.

  13. sandy081 commented on Dec 3, 2017

    @sandy081
    Member

    Fixed by cb926d5

  14. added
    verified
    on Dec 6, 2017
  15. weinand commented on Dec 11, 2017

    @weinand
    Contributor

    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.

  16. locked and limited conversation to collaborators on Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugimportanttree-viewsverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions