Skip to content

Enable loading of Feedback providers via config #25115

@SteveL-MSFT

Description

@SteveL-MSFT

Summary of the new feature / enhancement

Some native commands may want to participate by providing a Feedback provider, but not want to craft a whole module just for it. Tools today modify the user's $profile during app install and can be tricky to remove correctly during uninstall.

Proposed technical implementation details (optional)

Extend powershell.config.json to have a section for Feedback providers. Essentially containing this section:

(actual implementation will be in JSON, using YAML for readability)

FeedbackProviders:
  - Name: WinGet CommandNotFound
     Path: $env:programfiles\foo\bar.dll
     Enabled: true

The system config.json would be the default and users can override with their own config.json (setting Enabled: false).

Feedback providers loaded on startup via this method would need to have some message shown to inform the user.

One problem is that new installs of PS7 have a default system config.json which would clobber the old one. Perhaps instead we should have the system one under ProgramData (on Windows) which would be the one apps can modify for install/uninstall.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-DeclinedThe proposed feature is declined.WG-Interactive-Consolethe console experienceWG-ReviewedA Working Group has reviewed this and made a recommendation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions