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

Add tab completion for Select-Object -ExcludeProperty -ExpandProperty#3443

Merged
lzybkr merged 2 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
iSazonov:is-expandpropertyiSazonov/PowerShell:is-expandpropertyCopy head branch name to clipboard
Mar 29, 2017
Merged

Add tab completion for Select-Object -ExcludeProperty -ExpandProperty#3443
lzybkr merged 2 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
iSazonov:is-expandpropertyiSazonov/PowerShell:is-expandpropertyCopy head branch name to clipboard

Conversation

@iSazonov

Copy link
Copy Markdown
Collaborator

Close #3416

$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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

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