-
Notifications
You must be signed in to change notification settings - Fork 236
Make ExecuteCommandAsync
cancellable
#1532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
07df16a
to
9b25ad5
Compare
f284325
to
401c65e
Compare
ExecuteCommandAsync
cancellable
ed56d2f
to
b1808f0
Compare
@rjmholt The dev build I had several users test and approve for fixing the |
@@ -137,6 +137,7 @@ public async Task StartAsync() | |||
public void Dispose() | |||
{ | |||
_powerShellContextService.IsDebugServerActive = false; | |||
// TODO: If the debugger has stopped, should we clear the breakpoints? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As long as they're sent to us fresh in the next session, I think we should yeah
src/PowerShellEditorServices/Services/DebugAdapter/DebugEventHandlerService.cs
Outdated
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/DebugAdapter/Handlers/LaunchAndAttachHandler.cs
Outdated
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/PowerShellContext/Handlers/ExpandAliasHandler.cs
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/PowerShellContext/Handlers/GetCommandHandler.cs
Show resolved
Hide resolved
...rShellEditorServices/Services/PowerShellContext/Handlers/PSHostProcessAndRunspaceHandlers.cs
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/PowerShellContext/Handlers/ShowHelpHandler.cs
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/PowerShellContext/PowerShellContextService.cs
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/PowerShellContext/PowerShellContextService.cs
Show resolved
Hide resolved
0b8a4a5
to
98a3bd9
Compare
This lets us cancel the debugger more reliably.
98a3bd9
to
6a19daf
Compare
This hasn't solved the problem where the PowerShell debugger and the VS Code debugger somehow disconnect from each other when
System.Windows.Forms
is added to the PowerShell session, but it does improve the situation somewhat. The debugger can be stopped now (though it cannot be restarted yet).