`Write-Progress` not cleaned up unless `-Complete` is explicitly specified
See original GitHub issuePrerequisites
- I have written a descriptive issue title.
- I have searched all issues to ensure it has not already been reported.
- I have read the troubleshooting guide.
- I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
- I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
Summary
If you do a -complete it will go away. In normal PS it will go away at end of execution and return to prompt, so the “return to prompt” handling that happens in progress must not be happening in our host.
PowerShell Version
Preview
Visual Studio Code Version
Insiders
Extension Version
Preview
Steps to Reproduce
Write-Progress 'test'
Hit enter a few times
Visuals
No response
Logs
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Write-Progress display - How to get rid of it when complete?
The issue is that the completed status bar remains on the screen after completion. #Some code... While( -NOT $Script:RecordSetG.EoF ) { #...Some ...
Read more >Powershell Write-Progress and Adding Timer - Stack Overflow
This seems to be an issue of VSCode only. When I run this simplified script in the console, the progress bar disappears automatically, ......
Read more >Progress Bar in PowerShell - Wit IT
In order to clean up our output a little, comment out our initial Write-Host that tells us which integer we're currently on by...
Read more >Progress Report: Full Guide | Slite.com
Writing a progress report can be this easy. Use our template to describe the progress of any project. Collaborate, discuss, & decide together...
Read more >Manual Updates to Clarify Skilled Nursing Facility (SNF ... - CMS
The regulations under 409.32(a) and (b) do not specify that an assistant ... Even if full recovery or medical improvement is not possible, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Linking @SeeminglyScience’s potential fix: https://github.com/PowerShell/vscode-powershell/issues/3423#issuecomment-965183184
@andschwa I wonder if this is a PSHost thing that has to be reimplemented, since a lot of that went away.