diff --git a/src/System.Management.Automation/engine/hostifaces/PowerShell.cs b/src/System.Management.Automation/engine/hostifaces/PowerShell.cs index c6839716d8f..0c6d8b08616 100644 --- a/src/System.Management.Automation/engine/hostifaces/PowerShell.cs +++ b/src/System.Management.Automation/engine/hostifaces/PowerShell.cs @@ -3601,7 +3601,7 @@ internal void GenerateNewInstanceId() /// /// A steppable pipeline object /// An attempt was made to use the scriptblock outside of the engine. - internal SteppablePipeline GetSteppablePipeline() + public SteppablePipeline GetSteppablePipeline() { ExecutionContext context = GetContextFromTLS(); SteppablePipeline spl = GetSteppablePipeline(context, CommandOrigin.Internal); diff --git a/test/powershell/Host/TabCompletion/TabCompletion.Tests.ps1 b/test/powershell/Host/TabCompletion/TabCompletion.Tests.ps1 index b93891632b7..206ca7f9c4f 100644 --- a/test/powershell/Host/TabCompletion/TabCompletion.Tests.ps1 +++ b/test/powershell/Host/TabCompletion/TabCompletion.Tests.ps1 @@ -696,7 +696,7 @@ dir -Recurse ` It "Test member completion of a static method invocation" { $inputStr = '[powershell]::Create().' $res = TabExpansion2 -inputScript $inputStr -cursorColumn $inputStr.Length - $res.CompletionMatches | Should -HaveCount 31 + $res.CompletionMatches | Should -HaveCount 32 $res.CompletionMatches[0].CompletionText | Should -BeExactly "Commands" } }