Repository: vscode
Issue: Restore fullscreen windows to the correct displays
Labels: feature-request,workbench-os-integration,workbench-window,keep


Type: <b>Bug</b>

On a dual-monitor macOS setup:

- launch vscode
- open a workspace
- enter fullscreen on the secondary monitor (extended display)
- quit
- relaunch workspace

The workspace re-opens in fullscreen, but on the main display, not the extended display.

My settings include:
  "window.restoreFullscreen": true,



VS Code version: Code 1.83.0 (e7e037083ff4455cf320e344325dacb480062c3c, 2023-10-03T16:13:10.518Z)
OS version: Darwin arm64 22.6.0
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Apple M1 Max (10 x 24)|
|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)|2, 3, 5|
|Memory (System)|64.00GB (32.26GB free)|
|Process Argv|. --crash-reporter-id dae8ca02-68b7-4468-ba52-c04b37944378|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (46)</summary>

Extension|Author (truncated)|Version
---|---|---
api-linter|API|0.0.2
astro-vscode|ast|2.3.3
atlascode|atl|3.0.7
melos-code|bla|1.0.1
vscode-tailwindcss|bra|0.10.0
better-toml|bun|0.3.2
npm-intellisense|chr|1.4.5
path-intellisense|chr|2.8.5
dart-code|Dar|3.74.0
flutter|Dar|3.74.0
vscode-eslint|dba|2.4.2
binary-plist|dni|0.11.3
githistory|don|0.6.20
gitlens|eam|14.3.0
prettier-vscode|esb|10.1.0
git-project-manager|fel|1.8.2
copilot|Git|1.126.0
copilot-chat|Git|0.8.0
vscode-pull-request-github|Git|0.74.0
go|gol|0.39.1
vscode-graphql|Gra|0.8.19
vscode-graphql-syntax|Gra|1.2.2
terraform|has|2.28.1
protobuf-helper|hua|0.2.10
svg|joc|1.5.3
solidity|Jua|0.0.165
git-graph|mhu|1.30.0
dotenv|mik|1.0.1
inline-fold|moa|0.2.6
vscode-docker|ms-|1.26.1
remote-containers|ms-|0.315.1
makefile-tools|ms-|0.7.0
vsliveshare|ms-|1.0.5883
vsliveshare-pack|ms-|0.4.0
prisma|Pri|5.4.2
vscode-yaml|red|1.14.0
vscode-sort-json|ric|1.20.0
vscode-fileutils|sle|3.10.3
swift-lang|ssw|1.5.2
stately-vscode|sta|2.0.0
svelte-vscode|sve|107.12.0
icons|tal|3.7.0
vscode-lldb|vad|1.10.0
vscode-icons|vsc|12.5.0
markdown-all-in-one|yzh|3.5.1
vscode-proto3|zxh|0.5.5

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30856252
vscaat:30438848
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyonecf:30548226
2e4cg342:30602488
89544117:30613380
2i9eh265:30646982
showlangstatbar:30737416
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
copilotsettingc:30839828
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
pythonmhint1:30842940
dsvsc015:30845448

```

</details>

<!-- generated by issue reporter -->