Closed
Description
From PowerShell/PowerShellEditorServices#1210.
While PowerShell/PowerShellEditorServices#1210 patches this, it is likely to not be enough to fully prevent the issues occurring here.
Instead we need to sift through the interaction between the debugger, PSReadLine and the PowerShellContextService to ensure that our internal conceptual state machine makes sense and that the way multiple threads interact with the state of PowerShell is sensible and well-defined.