-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrated Console - Write-Progress messes things up #3423
Comments
That is indeed a bug, thanks for reporting it. It's unfortunately a bit difficult to fix as its a custom PowerShell host. We will look into this. |
@rjmholt thinks this a race condition between |
🤞 |
Hello, and thank you for your patience! The latest PowerShell Preview for VS Code is now out, and includes the reworking of our pipeline and threading architecture in PowerShell/PowerShellEditorServices#1295. Could you verify if this issue still reproduces using v2021.10.3-preview? Please note that this preview is likely to include other bugs, and you should feel free to file new issues for those so we can work through them. Thanks again! |
Thanks for checking @Tiberriver256! We will leave this issue open and continue to track it. |
A couple of things missing from the old host implementation: Track current progress messages so they can be cleared up when a the top level pipeline completes. Also a little bit under that it's hooking into an execution status event to call Since it's not very obvious why you'd need to do that, I'll copy and paste an explanation from when I was suggesting it as the fix:
(it does) |
Hey so the good news is that this appears fixed in the latest Preview: the prompt now shows up where it should (the end). There is a remaining bug, but it's #3807 ( |
This issue has been marked as fixed. It has been automatically closed for housekeeping purposes. |
The remaining fix for this is out in PowerShell Preview v2022.2.2! |
Issue Description
Running a script with
Write-Progress
screws up the console.Example Script
Expected Behaviour
Should look like this (example taken from pwsh running in VSCode):
Actual Behaviour
Looks like this:
The prompt is getting rendered towards the top instead of at the end of the content
The text was updated successfully, but these errors were encountered: