vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Terminal selector dropdown has excessive vertical spacing around the Show Tabs action

Open hazicy opened this issue 2 weeks ago • 4 comments

Type: Bug

Description

The integrated terminal selector dropdown appears to have excessive vertical spacing below the terminal entry and around the Show Tabs action. This makes the menu unnecessarily tall even when only one terminal is listed.

In the observed UI, the dropdown contains a single 1: zsh entry, a separator, and the Show Tabs action (displayed as 显示选项卡 in the Chinese UI). There is a noticeable empty band between the terminal entry and the separator, with additional space above the action. The result looks as though the menu contains empty rows.

Steps to reproduce

  1. Open the integrated terminal with a single terminal session.
  2. Open the terminal selector dropdown in the terminal toolbar.
  3. Observe the spacing below the terminal entry and around Show Tabs.

These steps describe the reported UI state; reproduction in a clean profile has not yet been verified.

Actual behavior

The dropdown has disproportionately large vertical gaps relative to the terminal entry height.

Expected behavior

The dropdown should size to its contents, with compact, consistent spacing between terminal entries, the separator, and the Show Tabs action.

Environment

  • OS: macOS
  • Installed VS Code app package version: 1.146.0
  • UI language: Simplified Chinese
  • Terminal: zsh
  • Zoom level and extension involvement: not yet confirmed

Notes

This report is based on a screenshot of the affected UI. The underlying cause has not been confirmed; it could involve padding, row height, or menu layout sizing. The screenshot is not attached to this report.

hazicy avatar Nov 17 '26 01:11 hazicy

can you add screenshot? let me try to repro

nikolaydubina avatar Nov 17 '26 09:11 nikolaydubina

image image

hazicy avatar Nov 17 '26 09:11 hazicy

YEah, I got the same bug on my windows11. default (custom) title bar and terminal.integrated.tabs.enabled: false Version: 1.146.0

Screenshot 2026-12-01 204726 also the "Show Tabs" highlight is clipped at the bottom, and its rounded bottom corners are missing.

plutoTaco avatar Dec 01 '26 15:12 plutoTaco

i think it's selectBoxCustom.ts, it gives the separator option the same 22px height as a normal option (getHeight() returns SELECT_OPTION_HEIGHT for every item), and the line is drawn at top: 50%, so it reads as an empty row. Giving unlabelled separators a smaller height in getHeight() should fix it (at least I think it does, I'll try it and update here).

plutoTaco avatar Dec 01 '26 15:12 plutoTaco