-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Conversation
@@ -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 @{ |
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.
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" { |
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.
'Sort-Object @{ should work
Minor comment: did you miss a single quote? :)
Adressing review comments
@daxian-dbw Thx for the review. Issues addressed. |
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. |
@iSazonov I thought the number in the title did so, but apparently I was incorrect :) |
Fix #3624