Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upClean up and pop dead runspace when using 'attach' for V2 #897
Conversation
|
I definitely want @SeeminglyScience's green check on this |
|
LGTM! |
Previously, when you used the
attachlaunch config, if you killed the process that you were attaching to while PSES was attached to it, PSES would go into a bad state and hang forever.This was because the Runspace wasn't getting cleaned up properly when the connection between the two processes broke.
This change checks for the bad runspace state, cleans up, and pops the bad runspace.
Here's what you see:
which is very consistent with what pwsh.exe shows when this happens.