Summary of the new feature / enhancement
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.
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
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