Window sizing is inconsistent when using context menu
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Type: Bug
If I open a new VS Code window, it opens in the window size I last used. But if I then use the right-click menu on the dock icon and select one of the folders in the "recent" list, the VS Code window opens up basically full screen instead of the previous window size. If I right-click the dock icon and choose the "new window" option, it opens in the right size. It's only when I select one of the recent items.
VS Code version: Code 1.136.2 (Universal) (88e44fa0e00b08f7758b4f6d05632e4fd5e4df6f, 2026-09-04T21:40:42Z)
OS version: Darwin arm64 25.6.0
Modes:
System Info
|Item|Value|
|---|---|
|CPUs|Apple M3 (8 x 2400)|
|GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M3, Version 26.6.2 (Build 25G83))], DRIVER_VENDOR=Apple, DRIVER_VERSION=26.6.2 *ACTIVE*
Machine model name: Mac
Machine model version: 15.3
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off|
|Load (avg)|7, 7, 7|
|Memory (System)|16.00GB (0.29GB free)|
|Process Argv|--crash-reporter-id 5ab4ddd1-459c-429b-bce9-d96ed4baa611|
|Screen Reader|no|
|VM|0%|
Extensions (21)
Name|Identifier|Author|Version
---|---|---|---
vscode-openapi-viewer|andrewbutson.vscode-openapi-viewer|AndrewButson|1.1.5
Docker DX|docker.docker|docker|0.18.0
GitHub Repositories|github.remotehub|GitHub|0.64.0
HashiCorp Terraform|hashicorp.terraform|hashicorp|2.40.0
Terraform Format on Save|matheusq94.tfs|matheusq94|0.0.4
Rainbow CSV|mechatroner.rainbow-csv|mechatroner|3.24.1
Azure App Service|ms-azuretools.vscode-azureappservice|ms-azuretools|0.27.0
Azure Resources|ms-azuretools.vscode-azureresourcegroups|ms-azuretools|0.12.7
Microsoft Terraform|ms-azuretools.vscode-azureterraform|ms-azuretools|0.10.4
Container Tools|ms-azuretools.vscode-containers|ms-azuretools|2.5.1
Docker|ms-azuretools.vscode-docker|ms-azuretools|2.0.0
.NET Install Tool|ms-dotnettools.vscode-dotnet-runtime|ms-dotnettools|3.1.0
Data Workspace|ms-mssql.data-workspace-vscode|ms-mssql|0.6.3
SQL Server (mssql)|ms-mssql.mssql|ms-mssql|1.45.1
SQL Bindings|ms-mssql.sql-bindings-vscode|ms-mssql|0.4.1
SQL Database Projects|ms-mssql.sql-database-projects-vscode|ms-mssql|1.7.0
Dev Containers|ms-vscode-remote.remote-containers|ms-vscode-remote|0.469.0
Azure Repos|ms-vscode.azure-repos|ms-vscode|0.40.0
PowerShell|ms-vscode.powershell|ms-vscode|2025.4.0
Remote Repositories|ms-vscode.remote-repositories|ms-vscode|0.42.0
Puppet|puppet.puppet-vscode|puppet|1.5.7
A/B Experiments
```
vsliv368cf:30146710
pythonvspyt551cf:31249601
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
82j33506:31327384
envsactivate1:31551504
478i5457:31544283
cloudbuttont:31379625
3efgi100_wstrepl:31403338
839jf696:31457053
ddidtcf:31399634
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31572277
c3h7c220:31478652
cp_cls_c_1081:31454833
conptydll_true:31498968
core-renderer-profiling-on:31440367
e9c30283:31461165
46204921:31447328
ei9d7968:31496641
chat:31457767
ddid_c:31478207
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
jh5f2457_c:31540921
jbcp_cls_pctr_t:31531130
cp_intellij_t_nes:31548657
d7b18187:31526828
ahp-both-windows:31556933
ihg5j128:31534457
9gg7f176:31542112
sandbox-ui-on-2:31543161
enable_editor_pane_layout:31569726
allow-none:31555437
ac562147:31564510
c7c27ce7:31554789
1h923230:31564177
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31570291
a1hcc538:31559322
0c1h4866:31566224
vrbsty_tr:31561058
session-archive:31558132
5b8j3302:31564601
mangle-name-control:31572633
intellij_nes_preview_t:31580086
39a5d156:31574986
2bfb8b39:31576696
```
Contributor guide
Assessment
This issue has not been assessed yet.