Repository: vscode
Issue: macOS tabs don't work correctly in fullscreen
Labels: upstream,macos,electron

Type: <b>Bug</b>

A problem occur when I open a new tab. You can find below a reproduction of the
bug with screenshots.

> __Note__: I can't reproduce this bug without the fullscreen mode.

1. Open Visual Studio Code.
2. Open a project (`projectA` for example).

<p align="center">
  <img width="504" alt="Screenshot 2023-06-21 at 14 40 55" src="https://github.com/microsoft/vscode/assets/7528452/c9232024-d21e-4371-a999-d7f2ad20a91e">
</p>

3. Open the command palette.
4. Enter the command `>New Window Tab`.
5. Open another project (`projectB` for example)

<p align="center">
  <img width="504" alt="Screenshot 2023-06-21 at 14 41 18" src="https://github.com/microsoft/vscode/assets/7528452/a7c9ce59-4f87-4e57-889c-06df47094b27">
</p>

6. Go to the first tab (`projectA`).

<p align="center">
  <img width="504" alt="Screenshot 2023-06-21 at 14 41 26" src="https://github.com/microsoft/vscode/assets/7528452/e4571000-df31-4818-bb48-be33ea93ade0">
</p>

7. Open the command palette.
8. Enter the command `>New Window Tab`.

<p align="center">
  <img width="504" alt="Screenshot 2023-06-21 at 14 41 30" src="https://github.com/microsoft/vscode/assets/7528452/2cbfec23-640b-4c35-be0a-64d873a76375">
</p>

9. The new created tab is opened in the second project (`projectB`).

<p align="center">
  <img width="504" alt="Screenshot 2023-06-21 at 14 41 37" src="https://github.com/microsoft/vscode/assets/7528452/926e6fae-c097-49a1-a6d6-89f5e0f7e949">
</p>

10. The `projectB` is opened in the latest tab (`Untitled-1`).

<p align="center">
  <img width="504" alt="Screenshot 2023-06-21 at 14 41 43" src="https://github.com/microsoft/vscode/assets/7528452/b91e2525-3043-4d63-9bb8-47250c3a0201">
</p>

VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:58:33.551Z)
OS version: macOS 13.4 (22F66), Darwin arm64 22.5.0
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Apple M1 Pro (8 x 24)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>metal: disabled_off<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)|6, 6, 10|
|Memory (System)|16.00GB (0.05GB free)|
|Process Argv|--crash-reporter-id 8b80d23c-bcac-4c92-ad86-eb470986b290|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (83)</summary>

Extension|Author (truncated)|Version
---|---|---
ng-template|Ang|16.0.0
quitcontrol-vscode|art|4.0.0
markdown-emoji|bie|0.3.0
markdown-mermaid|bie|1.18.1
markdown-preview-github-styles|bie|2.0.2
gitignore|cod|0.9.0
doxdocgen|csc|1.4.0
angular-schematics|cyr|5.4.2
vscode-eslint|dba|2.4.0
githistory|don|0.6.20
gitlens|eam|14.0.1
EditorConfig|Edi|0.16.4
vscode-great-icons|emm|2.1.93
copilot|Git|1.90.174
vscode-github-actions|git|0.25.8
activitusbar|Gru|0.0.47
CppSnippets|har|0.0.15
vscode-env|Iro|0.1.0
vscode-edit-csv|jan|0.7.6
Angular2|joh|16.0.1
vscode-csharp-snippets|jor|1.1.0
docomment|k--|1.0.0
ignore-files|lde|0.1.0
eml|lei|0.4.0
marp-vscode|mar|2.6.0
rainbow-csv|mec|3.7.0
vscode-apache|mrm|1.2.0
azure-dev|ms-|0.6.0
vscode-azureappservice|ms-|0.24.9
vscode-azurecontainerapps|ms-|0.5.1
vscode-azurefunctions|ms-|1.11.0
vscode-azureresourcegroups|ms-|0.7.5
vscode-azurestaticwebapps|ms-|0.12.1
vscode-azurestorage|ms-|0.15.3
vscode-azurevirtualmachines|ms-|0.6.5
vscode-bicep|ms-|0.18.4
vscode-cosmosdb|ms-|0.19.4
vscode-docker|ms-|1.25.1
csharp|ms-|1.25.9
dotnet-interactive-vscode|ms-|1.0.4313020
vscode-dotnet-runtime|ms-|1.6.0
data-workspace-vscode|ms-|0.5.0
mssql|ms-|1.19.1
sql-bindings-vscode|ms-|0.4.0
sql-database-projects-vscode|ms-|1.1.1
jupyter|ms-|2023.5.1001582324
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.15
vscode-jupyter-cell-tags|ms-|0.1.8
vscode-jupyter-slideshow|ms-|0.1.5
remote-wsl|ms-|0.79.5
azure-account|ms-|0.11.5
cpptools|ms-|1.15.4
hexeditor|ms-|1.9.11
sublime-keybindings|ms-|4.0.10
vscode-node-azure-pack|ms-|1.2.0
azurerm-vscode-tools|msa|0.15.10
resourcemonitor|mut|1.0.7
php-docblocker|nei|2.7.0
psi-header|psi|1.21.1
quicktype|qui|12.0.46
vscode-thunder-client|ran|2.7.7
vscode-xml|red|0.25.0
vscode-yaml|red|1.13.0
crates|ser|0.5.11
trailing-spaces|sha|0.4.1
vscode-fileutils|sle|3.10.1
conanlight|Son|1.4.0
sass-indented|syl|1.8.26
even-better-toml|tam|0.19.0
shellcheck|tim|0.32.6
pdf|tom|1.2.2
cmake|twx|0.0.17
sort-lines|Tyr|1.10.1
errorlens|use|3.11.1
intellicode-api-usage-examples|Vis|0.2.7
vscodeintellicode|Vis|1.2.30
codetour|vsl|0.0.59
vscode-todo-highlight|way|1.0.5
vscode-nginx|wil|0.7.2
php-pack|xde|1.0.3
markdown-all-in-one|yzh|3.5.1
php-intellisense|zob|1.1.3

(3 theme extensions excluded)

</details>