Skip to content

Commit cc86db4

Browse files
committed
Fix cancellation
1 parent 06111c4 commit cc86db4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/PowerShellEditorServices/Services/PowerShell/Execution/PipelineThreadExecutor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private void Run()
113113
// We need to override the idle handler here,
114114
// since readline will be overridden when the initial Powershell runspace is instantiated above
115115
_readLineProvider.ReadLine.TryOverrideIdleHandler(OnPowerShellIdle);
116-
_psesHost.PushNewReplTask();
116+
_psesHost.StartRepl();
117117
RunTopLevelConsumerLoop();
118118
}
119119

src/PowerShellEditorServices/Services/PowerShell/Host/EditorServicesConsolePSHost.cs

+5
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ internal void CancelCurrentPrompt()
153153
_consoleReplRunner?.CancelCurrentPrompt();
154154
}
155155

156+
internal void StartRepl()
157+
{
158+
_consoleReplRunner?.StartRepl();
159+
}
160+
156161
internal void PushNewReplTask()
157162
{
158163
_consoleReplRunner?.PushNewReplTask();

0 commit comments

Comments
 (0)