Skip to content

Conversation

@connor4312
Copy link
Member

Copilot AI review requested due to automatic review settings September 30, 2025 20:27
@connor4312 connor4312 enabled auto-merge (squash) September 30, 2025 20:27
@connor4312 connor4312 self-assigned this Sep 30, 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 adds icon support to MCP (Model Context Protocol) resource templates, following up on a previous change. The update ensures that resource templates can display icons consistently with resources.

  • Extends the ResourceTemplate interface to include icon support through the Icons interface
  • Updates resource template construction to parse and pass icon data
  • Refactors icon handling to use a new fromParsed method for better separation of concerns

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/vs/workbench/contrib/mcp/common/modelContextProtocol.ts Extends ResourceTemplate interface to include Icons
src/vs/workbench/contrib/mcp/common/mcpTypes.ts Adds icons property to IMcpResourceTemplate interface
src/vs/workbench/contrib/mcp/common/mcpServer.ts Updates resource template construction to include parsed icons
src/vs/workbench/contrib/mcp/common/mcpIcons.ts Adds ParsedMcpIcons type and fromParsed method for better icon handling
src/vs/workbench/contrib/mcp/browser/mcpResourceQuickAccess.ts Consolidates icon handling logic for both resources and templates

@vs-code-engineering vs-code-engineering bot added this to the September 2025 milestone Sep 30, 2025
@connor4312 connor4312 merged commit c3a4ffb into main Sep 30, 2025
28 checks passed
@connor4312 connor4312 deleted the connor4312/mcp-resource-template-icons branch September 30, 2025 20:38
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Nov 14, 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