Skip to content

Conversation

@lszomoru
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings November 11, 2025 19:41
@lszomoru lszomoru enabled auto-merge (squash) November 11, 2025 19:41
@lszomoru lszomoru self-assigned this Nov 11, 2025
Copilot finished reviewing on behalf of lszomoru November 11, 2025 19:42
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 11, 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 element access in the SCM (Source Control Management) component by replacing querySelector calls with direct DOM traversal methods. The goal is to remove restricted syntax usage and improve code maintainability.

Key changes:

  • Replaced querySelector('.monaco-tl-twistie') with safer previousElementSibling access
  • Added defensive checks to validate DOM structure before applying classes
  • Improved comment formatting from "hack" to "HACK"

Reviewed Changes

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

File Description
scmViewPane.ts Updated three renderer classes (ActionButtonRenderer, InputRenderer, ResourceGroupRenderer) to use previousElementSibling instead of querySelector
scmRepositoryRenderer.ts Updated RepositoryRenderer to use previousElementSibling instead of querySelector
scmHistoryViewPane.ts Updated two renderer classes (HistoryItemRenderer, HistoryItemLoadMoreRenderer) to add defensive checks that were previously missing

@lszomoru lszomoru merged commit 20ff868 into main Nov 11, 2025
33 of 34 checks passed
@lszomoru lszomoru deleted the lszomoru/incredible-grouse branch November 11, 2025 19:59
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.

3 participants