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
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