Skip to content

Send stopDebugger notification when appropriate #1570

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 3 commits into from
Sep 7, 2021

Conversation

andyleejordan
Copy link
Member

This is the edge case where the debug server is running because it was started by PowerShell (and not by an LSP event), and we're no longer in the debugger within PowerShell, so since we own the state we need to stop the debug server too.

Along with PowerShell/vscode-powershell#3542, this resolves one of the main issues brought up in PowerShell/vscode-powershell#3522.

@andyleejordan
Copy link
Member Author

This needs some tests...

I added a bunch more recently that was became less useful and more noisy
after my familiarity improved.
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andyleejordan
Copy link
Member Author

I'm going to merge so as to get it into a preview while I work on tests.

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.

3 participants