Repository: vscode
Issue: Sidebar should remember its sizing
Labels: under-discussion,layout

Type: <b>Bug</b>

When moving a VS Code window from one screen to another the sidebar/explorer size is not remembered. This is true of moving by grabbing the titlebar with the mouse (when maximized) and moving it to another screen (and maximizing) by moving the mouse to the top of the screen. It is also true of using the WIN+arrow keys to move the window to another screen and WIN+UP to maximize.

In both cases, the width of the sidebar is reset to minimum: ideally it would be remembered and set to the previous ratio, or at least the same size (particularly when moving from a small to large screen). Ticket #206685 feature request may also be related.

When using a laptop with an external screen connected, Windows often loses the monitor information and all windows get moved to the smaller laptop screen, so these actions are repeated frequently, along with normal screen switching in day to day use.

VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:10.514Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 4.15.0-213-generic
Remote OS version: Linux x64 4.15.0-213-generic

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|13th Gen Intel(R) Core(TM) i5-1340P (16 x 2189)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|31.69GB (10.97GB free)|
|Process Argv|--crash-reporter-id a6eae8c0-5038-415b-878a-cefba6362730|
|Screen Reader|no|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: callisto|
|OS|Linux x64 4.15.0-213-generic|
|CPUs|Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz (4 x 2299)|
|Memory (System)|62.89GB (46.06GB free)|
|VM|0%|

|Item|Value|
|---|---|
|Remote|SSH: callisto|
|OS|Linux x64 4.15.0-213-generic|
|CPUs|Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz (4 x 2299)|
|Memory (System)|62.89GB (46.06GB free)|
|VM|0%|
</details><details><summary>Extensions (25)</summary>

Extension|Author (truncated)|Version
---|---|---
remote-containers|ms-|0.327.0
remote-ssh|ms-|0.107.1
remote-ssh-edit|ms-|0.86.0
remote-wsl|ms-|0.81.9
remote-explorer|ms-|0.4.1
composer-php-vscode|DEV|1.45.15145
intelli-php-vscode|DEV|0.12.15062
phptools-vscode|DEV|1.45.15145
profiler-php-vscode|DEV|1.45.15145
git-graph|mhu|1.30.0
vscode-docker|ms-|1.29.0
debugpy|ms-|2024.2.0
isort|ms-|2023.10.1
python|ms-|2024.2.1
vscode-pylance|ms-|2024.3.1
jupyter|ms-|2024.1.1
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.17
vscode-jupyter-cell-tags|ms-|0.1.8
vscode-jupyter-slideshow|ms-|0.1.5
vscode-typescript-next|ms-|5.5.20240314
vscode-thunder-client|ran|2.19.5
swift-lang|ssw|1.8.1
vscode-lldb|vad|1.10.0
php-debug|xde|1.34.0


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementst:30887150
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:30979542
d34g3935:30971562
bg6jg535:30979843
dsvsc020:30976470
gee8j676:30988843

```

</details>

<!-- generated by issue reporter -->