Skip to content

Commit ebe3905

Browse files
committed
Remove unused cancellation token from EnterDebugLoop()
1 parent 338068a commit ebe3905

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/PowerShellEditorServices/Services/PowerShell/Debugging/PowerShellDebugContext.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation.
1+
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

44
using System;
@@ -118,12 +118,11 @@ public void SetDebugResuming(DebuggerResumeAction debuggerResumeAction)
118118
}
119119

120120
// This must be called AFTER the new PowerShell has been pushed
121-
public void EnterDebugLoop(CancellationToken loopCancellationToken)
121+
public void EnterDebugLoop()
122122
{
123123
RaiseDebuggerStoppedEvent();
124124
}
125125

126-
127126
// This must be called BEFORE the debug PowerShell has been popped
128127
[System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1822:Mark members as static", Justification = "This method may acquire an implementation later, at which point it will need instance data")]
129128
public void ExitDebugLoop()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ private void RunDebugExecutionLoop()
583583
{
584584
try
585585
{
586-
DebugContext.EnterDebugLoop(CancellationToken.None);
586+
DebugContext.EnterDebugLoop();
587587
RunExecutionLoop();
588588
}
589589
finally

0 commit comments

Comments
 (0)