Skip to content

Add wildcard back to end of tab completion command lookup - #9383

Merged
Travis Plunk (TravisEz13) merged 3 commits into
masterfrom
missed-completions-testcase
Apr 18, 2019
Merged

Travis Plunk (TravisEz13) merged 3 commits into
masterfrom
missed-completions-testcase

Conversation

@TylerLeonhardt

@TylerLeonhardt TylerLeonhardt commented Apr 16, 2019 •

Copy link
Copy Markdown
Member

PR Summary

Re-add wildcard when searching AST + Missed test case.

PR Context

In #8109, we removed the line that added a wildcard to the end of the command that was used to match commands in the script AST. This readds that line closer to where it is used.

PR Checklist

@SteveL-MSFT

Copy link
Copy Markdown
Member

PoshChan-Bot (@PoshChan) please get failures

@TylerLeonhardt

Copy link
Copy Markdown
Member Author

PoshChan-Bot (@PoshChan) please get failures

@PoshChan

Copy link
Copy Markdown
Collaborator

TylerLeonhardt, your last commit had 1 failures in PowerShell-CI-linux
TabCompletion.Miscellaneous completion tests.Input 'function Get-ScrumData {}; Get-Scrum' should successfully complete

Expected the actual value to be greater than 0, but got 0.
at <ScriptBlock>, /home/vsts/work/1/s/test/powershell/Host/TabCompletion/TabCompletion.Tests.ps1: line 593
593:             $res.CompletionMatches.Count | Should -BeGreaterThan 0

@PoshChan

Copy link
Copy Markdown
Collaborator

TylerLeonhardt, your last commit had 1 failures in PowerShell-CI-macos
TabCompletion.Miscellaneous completion tests.Input 'function Get-ScrumData {}; Get-Scrum' should successfully complete

Expected the actual value to be greater than 0, but got 0.
at <ScriptBlock>, /Users/vsts/agent/2.149.2/work/1/s/test/powershell/Host/TabCompletion/TabCompletion.Tests.ps1: line 593
593:             $res.CompletionMatches.Count | Should -BeGreaterThan 0

@PoshChan

Copy link
Copy Markdown
Collaborator

TylerLeonhardt, test results were not published for PowerShell-CI-static-analysis at vstfs:///Build/Build/20699

@PoshChan

Copy link
Copy Markdown
Collaborator

TylerLeonhardt, your last commit had 1 failures in PowerShell-CI-windows
TabCompletion.Miscellaneous completion tests.Input 'function Get-ScrumData {}; Get-Scrum' should successfully complete

Expected the actual value to be greater than 0, but got 0.
at <ScriptBlock>, D:\a\1\s\test\powershell\Host\TabCompletion\TabCompletion.Tests.ps1: line 593
593:             $res.CompletionMatches.Count | Should -BeGreaterThan 0

@TylerLeonhardt

Copy link
Copy Markdown
Member Author

There's the proof

@SteveL-MSFT

Copy link
Copy Markdown
Member

Travis Plunk (@TravisEz13) we should take this for next 6.2 servicing release

@TylerLeonhardt
TylerLeonhardt marked this pull request as ready for review April 17, 2019 02:58
@TravisEz13 Travis Plunk (TravisEz13) changed the title Missed test case Add wildcard back to end of tab completion command lookup Apr 17, 2019
@TravisEz13 Travis Plunk (TravisEz13) added the WG-Engine core PowerShell engine, interpreter, and runtime label Apr 17, 2019
@TravisEz13

Copy link
Copy Markdown
Member

TylerLeonhardt please review PR name. PR's that change functionality, should be named by the functionality they change.

@TylerLeonhardt

Copy link
Copy Markdown
Member Author

Travis Plunk (@TravisEz13) LGTM

@TravisEz13
Travis Plunk (TravisEz13) merged commit 9140e42 into master Apr 18, 2019
@TravisEz13
Travis Plunk (TravisEz13) deleted the missed-completions-testcase branch April 18, 2019 18:42
@TravisEz13 Travis Plunk (TravisEz13) added the CL-Engine Indicates that a PR should be marked as an engine change in the Change Log label Apr 23, 2019
Travis Plunk (TravisEz13) pushed a commit that referenced this pull request May 13, 2019
Re-add wildcard when searching AST + Missed test case.

## PR Context

In #8109, we removed the line that added a wildcard to the end of the command that was used to match commands in the script AST. This readds that line closer to where it is used.
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
…#9383)

Re-add wildcard when searching AST + Missed test case.

## PR Context

In PowerShell#8109, we removed the line that added a wildcard to the end of the command that was used to match commands in the script AST. This readds that line closer to where it is used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Engine Indicates that a PR should be marked as an engine change in the Change Log WG-Engine core PowerShell engine, interpreter, and runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants