Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

Removes three extension metadata fields no longer needed by the system: Icon, Repository, and DownloadCount.

Changes

  • Metadata Models

    • AvailableExtension: Removed DownloadCount property
    • ExtensionDescriptor: Removed Icon and Repository properties with their JsonPropertyName attributes
  • Package Generation

    • ExtensionPackageGenerator.GenerateManifestAsync(): Removed conditional manifest generation for icon and repository fields
  • Tests & Documentation

    • Removed property-specific tests from AvailableExtensionTests and ExtensionDescriptorTests
    • Updated README examples to reflect removed fields

Impact

Extensions now use a leaner metadata schema. Manifest generation excludes the removed fields. Existing extensions with these fields will still deserialize correctly due to optional property handling.

Original prompt

This section details on the original issue you should resolve

<issue_title>[FEATURE] Refactor the Extension module</issue_title>
<issue_description>### Feature Description

Remove the repository, downloadcount, icon metadata and their related business code.

Operating System Version (Optional)

No response

CPU Instruction Set Architecture (Optional)

No response</issue_description>

<agent_instructions>Remove the repository, downloadcount, icon metadata and their related business code.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 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.

Co-authored-by: JusterZhu <11714536+JusterZhu@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor extension module by removing unnecessary metadata Remove unused extension metadata fields (Icon, Repository, DownloadCount) Jan 29, 2026
Copilot AI requested a review from JusterZhu January 29, 2026 11:40
@JusterZhu JusterZhu marked this pull request as ready for review January 29, 2026 14:02
Copilot AI review requested due to automatic review settings January 29, 2026 14:02
@JusterZhu JusterZhu merged commit 3516fbd into master Jan 29, 2026
2 checks passed
@JusterZhu JusterZhu deleted the copilot/refactor-extension-module branch January 29, 2026 14:02
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

Removes unused extension metadata fields (Icon, Repository, DownloadCount) from the extension metadata schema and eliminates related manifest-generation logic and documentation/tests.

Changes:

  • Removed DownloadCount from AvailableExtension and removed Icon/Repository from ExtensionDescriptor.
  • Updated package manifest generation to no longer emit icon and repository.
  • Updated tests and README examples to reflect the leaner schema.

Reviewed changes

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

Show a summary per file
File Description
src/c#/GeneralUpdate.Extension/README.md Updates metadata examples to remove icon and repository.
src/c#/GeneralUpdate.Extension/PackageGeneration/ExtensionPackageGenerator.cs Stops writing icon/repository fields into generated manifests.
src/c#/GeneralUpdate.Extension/Metadata/ExtensionDescriptor.cs Removes Icon and Repository properties from the descriptor model.
src/c#/GeneralUpdate.Extension/Metadata/AvailableExtension.cs Removes DownloadCount from the available extension model.
src/c#/ExtensionTest/Metadata/ExtensionDescriptorTests.cs Removes tests covering Icon/Repository properties and related nullability assertions.
src/c#/ExtensionTest/Metadata/AvailableExtensionTests.cs Removes tests covering DownloadCount.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

[FEATURE] Refactor the Extension module

2 participants