Support trigger registration in Feedback Provider#19525
Support trigger registration in Feedback Provider#19525daxian-dbw merged 6 commits intoPowerShell:masterfrom
Conversation
|
It's helpful to ignore the whitespace changes during the review: https://github.com/PowerShell/PowerShell/pull/19525/files?w=1 |
SteveL-MSFT
left a comment
There was a problem hiding this comment.
LGTM, will defer feedback until I can build a Feedback provider using the new triggers
|
🎉 Handy links: |
|
@daxian-dbw sorry to be late to the party on this, but I don't think the feedback trigger should have a default, it should be explicitly implemented. This bit me when writing a provider because when I used my IDE to implement the interface, it didn't pull this in and I couldn't figure out why it wasn't working. Since it is RC it may be too late since this would be breaking for existing feedback providers that haven't explicitly stated it, but just a thought. |
PR Summary
PR Context
Address #19372 and address #19364
Comment,Success,CommandNotFound,Error, andAll. By default, a feedback provider will be triggered byCommandNotFoundonly.FeedbackHub.GetFeedbackmethods into multiple helper methods to reduce its complexity.PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.