Commit 17df8dd
authored
ensure the windowConfig window dimensions uses
## Summary
- a follow-up to #7440 to address
- #3303
- #6277
I'll also cherry-pick this to `main` once merged.
### Implementation
We need to explicitly set the windowConfig to
`window.newWindowDimensions = 'inherit'` because the default settings
aren't read anywhere otherwise.
Similar handling can be found in:
-
https://github.com/posit-dev/positron/blob/66236dbf0e9dd1739915979cdd152adc587810c6/src/vs/platform/launch/electron-main/launchMainService.ts#L159-L173
-
https://github.com/posit-dev/positron/blob/83cc85cee46e2d53a1eadcb86f8cfb9704c1e5a4/src/vs/platform/windows/electron-main/windowsMainService.ts#L985-L999
## QA Notes
Please try this out on machines with different screen sizes and
operating systems!
Make sure you don't already have `window.newWindowDimensions = inherit`
set in your user settings JSON, to ensure that the setting is pulling in
our new default value instead of pulling from your user setting (...not
speaking from experience or anything 😅)
Please also try testing:
- with no user settings that are for `window`, e.g. comment out/remove
any settings that start with `window.`
- with at least one user setting that is for `window`, such as
`"window.openFoldersInNewWindow": "on"`inherit (#7511)1 parent 076f4fb commit 17df8dd
File tree
1 file changed
+28
-2
lines changed- src/vs/platform/windows/electron-main
1 file changed
+28
-2
lines changedLines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
273 | 276 | | |
274 | 277 | | |
275 | 278 | | |
| |||
385 | 388 | | |
386 | 389 | | |
387 | 390 | | |
388 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
389 | 395 | | |
390 | 396 | | |
391 | 397 | | |
| |||
418 | 424 | | |
419 | 425 | | |
420 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
421 | 447 | | |
422 | 448 | | |
423 | 449 | | |
| |||
0 commit comments