PowerShellEditorServices
PowerShellEditorServices copied to clipboard
WIP: Wrap `ReadLine` with lock and fallback to legacy when re-entering
Just me trying things. So, weird thing, but in the repro for https://github.com/PowerShell/vscode-powershell/issues/3751, while we're in the debugger, things can't print. Like if you run Get-Process at the debug prompt it shows nothing, and if you're debugging the pwsh process you see a million exceptions. This gets resolved when I set the host explicitly in the new PSInvocationSettings. When we either don't create the linked cancellation token source, or when we move its scope outside the function its currently created in, the repro issue goes away. The monitor logic I guess is useless 🥲
Play around with it @SeeminglyScience?