Skip to content

Conversation

@lszomoru
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings October 31, 2025 20:51
@lszomoru lszomoru enabled auto-merge (squash) October 31, 2025 20:51
@lszomoru lszomoru self-assigned this Oct 31, 2025
@lszomoru lszomoru added the scm General SCM compound issues label Oct 31, 2025
@lszomoru lszomoru added this to the October 2025 milestone Oct 31, 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 the SCM Repositories view to handle artifact icons separately from labels, and adds new Git commands for creating branches and tags directly from artifact groups.

  • Separates icon rendering from label text in artifact and artifact group renderers
  • Improves tree compression logic to handle artifacts and folders correctly
  • Adds new git.repositories.createBranch and git.repositories.createTag commands

Reviewed Changes

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

File Description
src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.ts Separates icon HTML elements from IconLabel components, updates rendering logic to use ThemeIcon.asClassName, improves tree compression and expansion logic
src/vs/workbench/contrib/scm/browser/media/scm.css Adds icon margin styling and removes unused container flex display rule
extensions/git/src/commands.ts Refactors tag creation into reusable _createTag method and adds new artifact group command handlers
extensions/git/package.json Adds new git.repositories commands and updates menu contributions to use them instead of generic commands

import { ICompressibleTreeRenderer } from '../../../../base/browser/ui/tree/objectTree.js';
import { ICompressedTreeNode } from '../../../../base/browser/ui/tree/compressedObjectTreeModel.js';
import { ITreeCompressionDelegate } from '../../../../base/browser/ui/tree/asyncDataTree.js';
import { Codicon } from '../../../../base/common/codicons.js';
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

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

[nitpick] The Codicon import is only used for Codicon.folder. Consider using a more specific import or verify if ThemeIcon already provides folder icon constants that would be more consistent with the existing icon handling pattern in this file.

Copilot uses AI. Check for mistakes.
@lszomoru lszomoru merged commit edf5868 into main Oct 31, 2025
28 checks passed
@lszomoru lszomoru deleted the lszomoru/static-hedgehog branch October 31, 2025 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scm General SCM compound issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants