Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDK improvement] Provide a WidgetServer analogous to the ExtensionServer #3996

Open
bonzani opened this issue Nov 28, 2024 · 0 comments
Open
Labels
Issue-Feature New feature or request Needs-Triage New issue that the core contributors need to triage

Comments

@bonzani
Copy link

bonzani commented Nov 28, 2024

Suggested new feature or improvement

I'm in the process of writing an extension for DevHome that provides Widgets. The Extensions Readme states that

extensions can provide widgets to Dev Home using Widget providers.

While it was straight forward to use the ExtensionServer, it came as a surprize that I needed to implement my own copy of the WidgetServer. I've also found three places where extensions use the same code for the WidgetServer which might make it a good candidate to be provided by the extension SDK: GitHubExtension WidgetServer, GitHubExtension WidgetServer, GitHubExtension WidgetServer

It might be that there's an architecture or technical reason why this is not desirable, but I have not found anything online so far. I'm aware that this DevHome is still maturing and it also might just be the case that this is still on the todo list.

Scenario

Good examples are the three extensions mentioned in the description, but also additional new extensions that provide widgets need to re-implement the WidgetServer code every time. Providing it as part of the SDK would free extension developers from maintaining this infrastructure code and let them focus on providing features.

The WidgetServer is used in the Program.cs files GitHubExtensionServer, AzureExtensionServer, and CoreWidgetProvider

Additional details

No response

@bonzani bonzani added the Issue-Feature New feature or request label Nov 28, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage New issue that the core contributors need to triage label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature New feature or request Needs-Triage New issue that the core contributors need to triage
Projects
None yet
Development

No branches or pull requests

1 participant