8000 Fixing #3624 - Readline crash with @{<tab> by powercode · Pull Request #3626 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Fixing #3624 - Readline crash with @{<tab> #3626

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
Apr 25, 2017

Conversation

powercode
Copy link
Collaborator
@powercode powercode commented Apr 22, 2017

Fix #3624

@@ -442,6 +442,14 @@ internal List<CompletionResult> GetResultHelper(CompletionContext completionCont
result = GetResultForEnumPropertyValueOfDSCResource(completionContext, string.Empty, ref replacementIndex, ref replacementLength, out unused);
}
break;
case TokenKind.AtCurly:
// Handle scenarios such as Sort-Object @{<tab> || gci | Format-Table @{
Copy link
Member

Choose a reason for hiding this comment

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

Sort-Object @{ || gci | Format-Table @{

minor comment: can we change this to 'Sort-Object @{<tab>' or 'gci | Format-Table @{'? I think it's more readable.

@@ -54,4 +54,13 @@ Describe "Tab completion bug fix" -Tags "CI" {
$result.CompletionMatches[1].CompletionText | Should Be $DatetimeProperties[1].Name # DateTime
}
}

It "Issue#3628 - 'Sort-Object @{<tab> should work" {
Copy link
Member

Choose a reason for hiding this comment

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

'Sort-Object @{ should work

Minor comment: did you miss a single quote? :)

@daxian-dbw daxian-dbw self-assigned this Apr 24, 2017
Adressing review comments
@powercode
Copy link
Collaborator Author

@daxian-dbw Thx for the review. Issues addressed.

@iSazonov
Copy link
Collaborator

LGTM.

@powercode I added link on Issue in description. The Issue will be auto closed after merge. And it is useful to see a link to the PR in the Issue.

@powercode
Copy link
Collaborator Author

@iSazonov I thought the number in the title did so, but apparently I was incorrect :)

@daxian-dbw daxian-dbw merged commit 5bdcff5 into PowerShell:master Apr 25, 2017
@powercode powercode deleted the ht-3624 branch April 25, 2017 19:02
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