From 482ac75c52474da3a64633f66d57cbc0a38a281b Mon Sep 17 00:00:00 2001 From: Kirk Munro Date: Tue, 16 Oct 2018 21:54:19 -0300 Subject: [PATCH 1/2] make GetSteppablePipeline method public --- .../engine/hostifaces/PowerShell.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); From 56ea31ea3441ea22ac31ae8bc1a231f8c596c57d Mon Sep 17 00:00:00 2001 From: Kirk Munro Date: Sun, 4 Nov 2018 20:17:27 -0400 Subject: [PATCH 2/2] updated PowerShell member count --- test/powershell/Host/TabCompletion/TabCompletion.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } }