8000 Add tab completion for Select-Object -ExcludeProperty -ExpandProperty by iSazonov · Pull Request #3443 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 2 commits into from
Mar 29, 2017

Conversation

iSazonov
Copy link
Collaborator

Close #3416

@@ -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" {
Copy link
Contributor

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.

Copy link
Member

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
Copy link
Contributor

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@lzybkr lzybkr merged commit 39be710 into PowerShell:master Mar 29, 2017
@iSazonov iSazonov deleted the is-expandproperty branch March 30, 2017 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0