Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 8, 2025

When multiple tree items are selected, inline actions were appearing on every selected item. The expected behavior (matching SCM view) is to show actions only on the focused or hovered item.

Changes

Removed .selected selector from action visibility CSS rules across 8 tree views:

Before:

.monaco-list-row:hover .actions,
.monaco-list-row.selected .actions,
.monaco-list-row.focused .actions {
    display: block;
}

After:

.monaco-list-row:hover .actions,
.monaco-list-row.focused .actions {
    display: block;
}

Affected views:

  • Custom tree views
  • Keybindings editor
  • Ports/Tunnel view
  • Comments panel
  • Markers panel
  • Workspace trust settings
  • Chat sessions
  • Terminal tabs

Actions now appear only on hover or focus, not on all selected items.

Original prompt

This section details on the original issue you should resolve

<issue_title>Multi-selected tree view items all render inline actions</issue_title>
<issue_description>As you can see in the image, all selected items render the "inline" actions

image

This differs in behavior to the SCM view, for example, which only renders the "inline" actions on the "focused/active" item and/or if hovered

/cc @alexr00 </issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Remove .selected selector from action visibility CSS rules to match SCM behavior.
Actions should only show on focused or hovered items, not all selected items.

Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix multi-selected tree view items rendering inline actions Fix inline actions showing on all selected tree items Dec 8, 2025
Copilot finished work on behalf of alexr00 December 8, 2025 11:40
Copilot AI requested a review from alexr00 December 8, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multi-selected tree view items all render inline actions

2 participants