-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add tab completion for Select-Object -ExcludeProperty -ExpandProperty #3443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -35,4 +35,18 @@ Describe "Tab completion bug fix" -Tags "CI" { | |||
$result.CompletionMatches[1].CompletionText | Should Be "-NoClobber" | |||
$result.CompletionMatches[2].CompletionText | Should Be "-NoOverwrite" | |||
} | |||
It "Issue#3416 - 'Select-Object -ExcludeProperty <tab>' should work" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is the only one where we have issues numbers in the output of the test - I'm not sure how useful that is though.
I find git blame
sufficient for tracking back to an issue, but comments are also sufficient. In the output though - it's just clutter in my opinion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I already have this issue opened to eventually address this: #3369
It "Issue#3416 - 'Select-Object -ExcludeProperty <tab>' should work" { | ||
$cmd = "Get-Date | Select-Object -ExcludeProperty " | ||
$result = TabExpansion2 -inputScript $cmd -cursorColumn $cmd.Length | ||
$result.CompletionMatches.Count | Should Be 15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be a fragile test, e.g. if a new version of .Net adds a property.
A more reliable test would look for specific results and not care about ordering.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Close #3416