-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Make the experimental feature PSFeedbackProvider stable
#26343
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
Conversation
There was a problem hiding this 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 removes the legacy suggestion framework that was replaced by the extensible feedback provider system. The changes eliminate the hard-coded suggestion mechanism and its associated experimental feature flag (PSFeedbackProvider), consolidating on the newer feedback provider approach.
- Removes the
PSFeedbackProviderexperimental feature flag and related legacy suggestion infrastructure - Deletes legacy suggestion methods and related enums from
HostUtilities.cs - Removes conditional logic that checked the experimental feature flag and always uses the feedback provider
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/System.Management.Automation/resources/SuggestionStrings.resx | Removes the legacy suggestion string resource that was used by the old suggestion framework |
| src/System.Management.Automation/engine/hostifaces/HostUtilities.cs | Removes legacy suggestion infrastructure including SuggestionMatchType enum, suggestion initialization methods, and GetSuggestion methods along with unused imports |
| src/System.Management.Automation/engine/ExperimentalFeature/ExperimentalFeature.cs | Removes the PSFeedbackProvider experimental feature constant and its registration |
| src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs | Removes conditional logic and the EvaluateSuggestions method, always using EvaluateFeedbacks |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
📣 Hey @@daxian-dbw, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 https://aka.ms/PSRepoFeedback |
PR Summary
Per the decision of PMs and maintainers, this PR makes the experimental feature
PSFeedbackProviderstable.It involves quite some cleanup changes as the old suggestion framework is now removed.