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
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.
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.
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:
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
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.
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.
Activity
sandy081 commentedon Jan 14, 2020
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
#88637 temp fix
isidorn commentedon Jan 15, 2020
Thanks for letting me know. The workaround works for me.
sbatten commentedon Feb 20, 2020
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:

isidorn commentedon Feb 21, 2020
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
sbatten commentedon Feb 21, 2020
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.
sbatten commentedon May 11, 2020
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.