Closed
Description
VSCode PowerShell extension release v2020.4.1-preview or newer causes the integrated console to hang when attempting to run code if PSReadLine 2.2.0-beta3 is installed. The only changes introduced in v2020.4.1-preview are related to PowerShellEditorServices so I've raised the issue here and closed the existing one (can be found here for reference).
It appears to be related to pull 1255. Removing PSReadLine 2.2.0-beta3 and reverting back to beta2 fixes the problem, as does rolling back the extension to v2020.4.0-preview or older.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
andyleejordan commentedon Jul 6, 2021
Wow, thanks for the investigation! That's super interesting because we just recently traced an issue in PSReadLine 2.2.0-beta3 itself that caused more problems: PowerShell/PSReadLine#2616 I'm wondering how this interaction played out.
brwilkinson commentedon Jul 12, 2021
subscribe.
andyleejordan commentedon Jul 12, 2021
So I think the way this played out is that in the rework in #1255, PSES started using a linked cancellation token in PSReadLine to run correctly and asynchronously, but in beta3 of PSReadLine, the cancellation token was erroneously being dropped for an unlinked default token, which has now been fixed in PowerShell/PSReadLine#2636.