Skip to content

IFeedbackProvider can't work against native commands on non-zero exit code #18852

@SteveL-MSFT

Description

@SteveL-MSFT

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

Metadata

Metadata

Assignees

Labels

Issue-Enhancementthe issue is more of a feature request than a bugKeepOpenThe bot will ignore these and not auto-closeWG-Enginecore PowerShell engine, interpreter, and runtime

Type

No type

Projects

Status

Potentially for 7.4 GA

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions