You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current design of IFeedbackProvider only works against an ErrorRecord. Unless $PSNativeCommandUseErrorActionPreference is $true, no ErrorRecord is created if a native command exists with a non-zero exit code. For example, I can't build a feedback provider for the git command.
Perhaps FeedbackProviders should be registered with a Kind specifying when it should be enacted? I don't know if there will be other cases other than ErrorRecord and non-zero exit code.
Summary of the new feature / enhancement
The current design of IFeedbackProvider only works against an ErrorRecord. Unless
$PSNativeCommandUseErrorActionPreferenceis$true, no ErrorRecord is created if a native command exists with a non-zero exit code. For example, I can't build a feedback provider for thegitcommand.Proposed technical implementation details (optional)
Perhaps FeedbackProviders should be registered with a Kind specifying when it should be enacted? I don't know if there will be other cases other than ErrorRecord and non-zero exit code.
cc @daxian-dbw