Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 11, 2025

The issues view currently uses a text checkmark to indicate the current issue, while the pull requests view uses the $(check) codicon. This creates visual inconsistency.

Changes

  • Replace text with $(check) codicon for current issue indicator
  • Wrap label in vscode.MarkdownString with supportThemeIcons: true to enable codicon rendering
  • Escape $(...) patterns in issue titles to prevent unintended icon rendering

Implementation

// Before
treeItem.label = `✓ ${treeItem.label as string}`;

// After
const escapedTitle = element.title.replace(/\$\([a-zA-Z0-9~-]+\)/g, '\\$&');
const label: vscode.TreeItemLabel2 = {
    label: new vscode.MarkdownString(`$(check) ${escapedTitle}`, true)
};
treeItem.label = label as vscode.TreeItemLabel;

Matches the existing pattern in pullRequestNode.ts (lines 306, 322, 336-347).

Original prompt

Adopt the codicon tree item label in the issues view for the current issue.

Created from VS Code via the GitHub Pull Request extension.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits November 11, 2025 17:37
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot AI changed the title [WIP] Adopt codicon tree item label in issues view Adopt codicon tree item label for current issue in issues view Nov 11, 2025
Copilot AI requested a review from alexr00 November 11, 2025 17:46
@alexr00 alexr00 marked this pull request as ready for review November 11, 2025 18:06
@alexr00 alexr00 enabled auto-merge (squash) November 11, 2025 18:07
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 11, 2025
@alexr00 alexr00 merged commit 0473452 into main Nov 12, 2025
6 checks passed
@alexr00 alexr00 deleted the copilot/adopt-codicon-tree-item-label branch November 12, 2025 09:01
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