Skip to content

Reinstate colors of symbol codicons when used in custom tree views#320391

Open
gjsjohnmurray wants to merge 1 commit into
microsoft:mainfrom
gjsjohnmurray:fix-299479
Open

Reinstate colors of symbol codicons when used in custom tree views#320391
gjsjohnmurray wants to merge 1 commit into
microsoft:mainfrom
gjsjohnmurray:fix-299479

Conversation

@gjsjohnmurray
Copy link
Copy Markdown
Contributor

This PR fixes #299479

Issue was caused by #267787

Copilot AI review requested due to automatic review settings June 8, 2026 10:48
Copy link
Copy Markdown
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

Note

Copilot was unable to run its full agentic suite in this review.

Updates tree view icon rendering so theme icons without an explicit color get a fallback CSS class applied.

Changes:

  • Add codicon-colored class when node.themeIcon has no color configured.

Comment on lines 1474 to 1477
templateData.icon.style.color = this.themeService.getColorTheme().getColor(node.themeIcon.color.id)?.toString() ?? '';
} else {
iconClass = iconClass + ' codicon-colored';
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This issue appears to predate this PR

@gjsjohnmurray
Copy link
Copy Markdown
Contributor Author

Validated using the extension-samples branch documented at #299479 (comment)

image

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.

Symbol theme icons are no longer colored when used in custom tree view items

3 participants