Repository navigation
Allow viewlets to migrate between panel and sidebar - #84642
SteVen Batten (sbatten) wants to merge 5 commits into
Conversation
|
My feedback on the design: I have a basic question on the design, why are you not using Current vscode/src/vs/workbench/common/views.ts Line 171 in 88c2100 Views are updated in the Viewlets when views are added/removed/moved. As said, currently viewlets use view descriptors and the first step would be to let panels also us it. |
|
Sandeep Somavarapu (@sandy081) greet feedback, when trying to support a more generic model for custom views yesterday I learned a little more about the "purpose" of the view containers. I will try to map some of what I learned into using the existing registries and apply your suggestions. |
The goal of the PR is to allow entire viewlets to move between the sidebar and panel.
As a first step, I have created what is currently called a
Pane(name can be changed) to wrap the logic surrounding Panels, ViewContainers, Viewlets, and Views. Initial limitation for v0.0 is that we assume the view container has one view as is the case with Search. I have changed Search's implementation to use thePaneRegistryto start which now is working.We can see that the interface for the PaneRegistry is similar to other Registries in the code but it does a poor job at abstracting away the concept of Views, Viewlets, and Panels. This is because it was easier to get Search working without dropping half of its implementation.
Next steps involve making a simpler view work with an API that abstracts away the older concepts. I.e. the new view would define a single view and handle its layout accordingly instead of defining a panel and view and viewlet.
Following that, I will look into adding multiple views per viewlet.
Lastly, polishing the basic experience.