microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.23k stars 28.56k forks source link

Incorrect project tab names #205269

Open DroidAssembler opened 6 months ago

DroidAssembler commented 6 months ago

Type: Bug

  1. open several vscode with different projects (3-5)
  2. merge all windows to have possibility view it in tabs
  3. select middle tab
  4. then select "window->new tab"

Expected result: New tab, which appears near the tab selected in step (3) marked as new tab and other tab names has relevant naming

Actual result: The naming of tabs are incorrect and system will recognize that the tab was added in the end of tabs

VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:29:15.765Z) OS version: Darwin x64 22.6.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|4, 3, 2| |Memory (System)|16.00GB (2.70GB free)| |Process Argv|--crash-reporter-id c263b599-21a2-4dd5-bb82-d029c928e195| |Screen Reader|no| |VM|0%|
Extensions (58) Extension|Author (truncated)|Version ---|---|--- Bookmarks|ale|13.4.2 vscode-sqlite|ale|0.14.1 vscode-django|bat|1.15.0 vscode-raml|blz|3.0.1 doxdocgen|csc|1.4.0 vscode-notes|dio|1.2.1 githistory|don|0.6.20 python-environment-manager|don|1.2.4 python-extension-pack|don|1.7.0 xml|Dot|2.5.1 gitlens|eam|14.8.0 copy-relative-path-and-line-numbers|ezf|0.3.1 vscode-diff|fab|1.4.2 copilot|Git|1.160.0 copilot-chat|Git|0.12.2 vscode-pull-request-github|Git|0.80.1 go|gol|0.41.0 gc-excelviewer|Gra|4.2.58 CppSnippets|har|0.0.15 jbockle-format-files|jbo|3.4.0 better-cpp-syntax|jef|1.17.2 vsc-python-indent|Kev|1.18.0 lldb-vscode|lan|0.2.3 rainbow-csv|mec|3.11.0 git-graph|mhu|1.30.0 theme-monokai-pro-vscode|mon|1.2.2 compare-folders|mos|0.24.2 vscode-docker|ms-|1.29.0 debugpy|ms-|2024.0.0 isort|ms-|2023.10.1 python|ms-|2024.0.1 vscode-pylance|ms-|2024.2.2 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 cmake-tools|ms-|1.17.15 cpptools|ms-|1.18.5 cpptools-extension-pack|ms-|1.3.0 makefile-tools|ms-|0.8.22 sqltools|mtx|0.28.1 autodocstring|njp|0.6.1 indent-rainbow|ode|8.3.1 sqlite-viewer|qwt|0.3.13 vscode-thunder-client|ran|2.17.8 vscode-yaml|red|1.14.0 synthwave-vscode|Rob|0.1.15 code-spell-checker|str|3.0.1 vscode-make|tec|1.0.2 cmake|twx|0.0.17 vscode-lldb|vad|1.10.0 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.2.30 gitblame|wad|10.9.0 vscode-todo-highlight|way|1.0.5 jinja|who|0.0.8 markdown-all-in-one|yzh|3.6.2 (5 theme extensions excluded)
VSCodeTriageBot commented 6 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.86.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

DroidAssembler commented 6 months ago

The same result with 1.86.1

bpasero commented 6 months ago

This seems to be about macOS sierra native tabs, we purely rely on upstream components for this functionality:

https://github.com/microsoft/vscode/blob/ff23987823aaca66f5f0064b1200a568e59ba540/src/vs/platform/windows/electron-main/windowsMainService.ts#L1481-L1485

https://github.com/microsoft/vscode/blob/ff23987823aaca66f5f0064b1200a568e59ba540/src/vs/platform/windows/electron-main/windowImpl.ts#L989-L993