Skip to content

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

Merged
merged 2 commits into from
Aug 12, 2021
Merged

Conversation

andyleejordan
Copy link
Member

@andyleejordan andyleejordan commented Jul 30, 2021

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).

@andyleejordan andyleejordan requested a review from rjmholt July 30, 2021 16:48
@andyleejordan andyleejordan force-pushed the andschwa/debugger branch 2 times, most recently from f284325 to 401c65e Compare August 3, 2021 20:15
@andyleejordan andyleejordan changed the title WIP: Debugging the debugger Make ExecuteCommandAsync cancellable Aug 3, 2021
@andyleejordan andyleejordan force-pushed the andschwa/debugger branch 2 times, most recently from ed56d2f to b1808f0 Compare August 9, 2021 21:55
@andyleejordan
Copy link
Member Author

@rjmholt The dev build I had several users test and approve for fixing the System.Windows.Forms included this WIP PR. Since it's pretty thoroughly tested because of that, and it does make a marked improvement, I'll open this up for review and I think we should take it.

@andyleejordan andyleejordan marked this pull request as ready for review August 11, 2021 01:32
@andyleejordan andyleejordan added Area-Debugging Issue-Enhancement A feature request (enhancement). labels Aug 11, 2021
@@ -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?
Copy link
Contributor

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

@andyleejordan andyleejordan force-pushed the andschwa/debugger branch 4 times, most recently from 0b8a4a5 to 98a3bd9 Compare August 12, 2021 18:18
@andyleejordan andyleejordan merged commit 3c27ec3 into master Aug 12, 2021
@andyleejordan andyleejordan deleted the andschwa/debugger branch August 12, 2021 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Debugging Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants