Skip to content

Commit 52d2ca1

Browse files
author
Mike McLaughlin
committed
WIP
1 parent 0ed81bf commit 52d2ca1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Microsoft.Diagnostic.Repl/Console/ConsoleProvider.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ public void WriteLine(OutputType type, string format, params object[] parameters
121121
/// <exception cref="OperationCanceledException">ctrl-c interrupted the command</exception>
122122
public void WriteOutput(OutputType type, string message)
123123
{
124-
if (m_interruptExecutingCommand != null) {
125-
m_interruptExecutingCommand.Token.ThrowIfCancellationRequested();
126-
}
127124
switch (type)
128125
{
129126
case OutputType.Normal:
@@ -400,6 +397,7 @@ private async Task Dispatch(string newCommand, Func<string, CancellationToken, T
400397
catch (OperationCanceledException)
401398
{
402399
// ctrl-c interrupted the command
400+
m_lastCommandLine = null;
403401
}
404402
catch (Exception ex) when (!(ex is NullReferenceException || ex is ArgumentNullException))
405403
{

0 commit comments

Comments
 (0)