Skip to content

debt - some list/tree tweaks#276851

Merged
bpasero merged 2 commits intomainfrom
ben/neighbouring-orangutan
Nov 12, 2025
Merged

debt - some list/tree tweaks#276851
bpasero merged 2 commits intomainfrom
ben/neighbouring-orangutan

Conversation

@bpasero
Copy link
Member

@bpasero bpasero commented Nov 12, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 12, 2025 04:47
@bpasero bpasero self-assigned this Nov 12, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors DOM traversal logic for hiding twistie elements in tree views by replacing complex parent navigation with simpler sibling access.

  • Simplifies the approach to access the .monaco-tl-twistie element in tree renderers
  • Replaces container.parentElement.parentElement.querySelector('.monaco-tl-twistie') with container.previousElementSibling
  • Removes unnecessary eslint-disable comments

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/processExplorer/browser/processExplorerControl.ts Simplified twistie element access in ProcessHeaderTreeRenderer using previousElementSibling
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.ts Simplified twistie element access in AgentSessionRenderer using previousElementSibling

@bpasero bpasero marked this pull request as ready for review November 12, 2025 05:55
@bpasero bpasero enabled auto-merge (squash) November 12, 2025 05:55
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 12, 2025
@bpasero bpasero merged commit 834c559 into main Nov 12, 2025
28 checks passed
@bpasero bpasero deleted the ben/neighbouring-orangutan branch November 12, 2025 06:18
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants