Skip to content

Commit 2316a2d

Browse files
committed
Revert addition of shell.Stop() to ExecuteCommandAsync()
This unintentionally introduced a bug with the PSReadLine integration which left users needing to press `ENTER` in the console to start or continue the debugger.
1 parent d2484af commit 2316a2d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/PowerShellContextService.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,6 @@ public async Task<IEnumerable<TResult>> ExecuteCommandAsync<TResult>(
765765
}
766766

767767
// This is the primary reason that ExecuteCommandAsync takes a CancellationToken
768-
cancellationToken.Register(() => shell.Stop());
769768
return await Task.Run<IEnumerable<TResult>>(
770769
() => shell.Invoke<TResult>(input: null, invocationSettings), cancellationToken)
771770
.ConfigureAwait(false);

0 commit comments

Comments
 (0)