View size set when registering views is ignored in split view #37189
Labels
bug
Issue identified by VS Code Team member as probable bug
extensions
Issues concerning extensions
layout
General VS Code workbench layout issues
verified
Verification succeeded
Milestone
The default view of the Extensions viewlet uses split view to show 2 views
View for Installed extensions is registered with size 200. https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/extensions/electron-browser/extensionsViewlet.ts#L148
View for Recommended extensions is registered with size 600. https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/extensions/electron-browser/extensionsViewlet.ts#L170
To ensure the sizes in local storage arent used, comment this line: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/browser/parts/views/viewsViewlet.ts#L651
Now run vscode from source and go to extensions viewlet.
You will see that the first section takes up most of the space and the second section gets the minimum height.
I was able to trace it down to the
resize
method in thesplitView.ts
. It first applies theitem.view.minimumSize
to both the views. Then in the subsequent calls toresize
, the second view maintains the min size and rest of the space gets allocated to the first view.The text was updated successfully, but these errors were encountered: