Skip to content

Panel name changes after showing the panel #88637

Closed

Description

When using view container and views for panel, and if view container and view has different names, panel name is getting changed after the panel is shown.

Kapture 2020-01-14 at 22 26 03

Activity

  1. added
    bug
    workbench-views
    on Jan 14, 2020
  2. sandy081 commented on Jan 14, 2020

    @sandy081
    MemberAuthor

    This is tricky to fix. We are merging the view with view container only after the panel is opened. Until then it is hard to know if a view can be merged or not.

    Until we find a proper solution I am renaming the debug container to use the same name as repl view.

    Isidor Nikolic (@isidorn) FYI

  3. added a commit that references this issue on Jan 14, 2020
  4. isidorn commented on Jan 15, 2020

    @isidorn

    Thanks for letting me know. The workaround works for me.

  5. added
    debt
    and removed
    bug
    on Jan 23, 2020
  6. sbatten commented on Feb 20, 2020

    @sbatten
    Member

    I'm thinking that the names in panel should be stable (always using the container name) and we should have some other UI element that displays the name of the containing view if merged with the header. e.g. this terrible mock up but using the style of call stack line numbers:
    image

    image

  7. isidorn commented on Feb 21, 2020

    @isidorn

    Not sure if I understand your idea 100%. But if we show the name of the view in the place where the name of the container is expected then we should render them the same.
    For the user they are the same, it is just an implementation detail that one is a container, another is a view. A user is not aware of this, thus rendering them differently does not bring a clear benefit imho

  8. sbatten commented on Feb 21, 2020

    @sbatten
    Member

    Once we have multiple views, the distinction is more clear. Just as in the activity bar the icons refer to a container and the headers refer to views. The user is aware of the difference between the scm container and the gitlens views.

  9. sbatten commented on May 11, 2020

    @sbatten
    Member

    I think this is as addressed as we'd like by 56b8c19. This issue only surfaces if the view is different from the container which we should strive for not being the case in a default layout. In a non-default layout, we have a cache to prevent this in most cases.

  10. locked and limited conversation to collaborators on Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debtworkbench-views

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions