Skip to content

Remove cmdlet/cmd that error from history to reduce confusion #3517

Open
@StevenBucher98

Description

@StevenBucher98

Prerequisites

  • Write a descriptive title.

Description of the new feature/enhancement

When there is a cmdlet or command that errors, we should utilize the experimental feedback provider (or other method) to recognize that it was in fact an error and then remove the last line from the history PSReadLine uses for history predictions. This way historical predictions can only suggest commands that were successful. This should not remove it from the session history, only the PSReadLine history

Some questions:

  • Are erroring commands distracting for the user to have in history predictions?
  • Is it confusing for a failed command to not show up in history for users?

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-HistoryImprovementsLabel for tracking different improvements to historyArea-PredictorsLabel for issues related to predictorsIssue-EnhancementIt's a feature request.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions