Closed
Description
Currently, PSES manages its events through PSRL's PS event handling functionality, which is here.
When PSRL idles, we run PowerShell events. And in fact today's PSES adds its own events to the event handler -- it's where the extension runs all its PowerShell executions for services. Which leads to issues like PowerShell/vscode-powershell#2448.
With the async pipeline thread consumer, we are now in control of all of this, but we lose PSRL's handling of it.
We either need to:
- Work out a way to get PSRL to handle it again, or
- Handle it ourselves
We have to remember that events can only be processed in a nested PowerShell.
The assumption currently is that we'll handle things ourselves and do it here: