Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ValidateRange should not allow iteration over invalid range values #2849

Copy link
Copy link
@jterry75

Description

@jterry75
Issue body actions

Steps to reproduce

In any module that uses an Enum value to be passed. For example: -Type { Start, Stop, Pause} if you use the ValidateRange(Start, Stop) attribute tab completion will still cycle through -Type Pause too even though executing this would fail. It would be really cool if the tab completion didnt iterate over invalid ranges.

Expected behavior

Tab completion would only iterate over { Start, Stop }

Actual behavior

It iterates over all enum values.

Environment data

> $PSVersionTable
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Interactive-IntelliSensetab completiontab completion

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.