-
Notifications
You must be signed in to change notification settings - Fork 511
Start-Transcript + Write-Progress + yarn + MacOS: ^[[23;1R #5159
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
Comments
Hey, can you test in a PowerShell terminal that's in VS Code, but is not the extension terminal? Can you also test with VS Code's shell integration feature disabled? |
Okay this is fun. If I paste it in as multiple lines like individual commands, no issue. However, if I put it all on one line: Using F5 is likely running the whole thing as a single command. I'm having a hard time disabling the shell integration. I set "terminal.integrated.shellIntegration.enabled": false but $env:TERM_PROGRAM still shows |
For posterity: It appears $env:TERM_PROGRAM is an unreliable indicator of whether shellIntegration is enabled or disabled. The more obvious way to tell if the shellIntegration is disabled is to open a new pwsh and hover over it and look for the presence or absence of "Shell integration activated" Also I find it interesting that Ultimately disabling the shell integration did not fix it: |
Okay here's something interesting and potentially unrelated but on Windows Write-Progress output is included in the transcript and gets clobbered by yarn --version's output:
However, if I don't run yarn at all, Write-Progress output is not included: Start-Transcript -Path (New-TemporaryFile).FullName;"Running Write-Progress";Write-Progress "a";"Stopping Transcript"; Stop-Transcript;
On MacOS if I continuously hit Enter to get through it while including yarn, Write-Progress output is not included, and Write-Progress is also not included without yarn. So I guess the question is, should Write-Progress messages be included in the transcript? It seems like they shouldn't. But for some reason they are when NativeCommands like yarn are run. I suppose the strangest thing is that I can't repro is in a Terminal outside of VS Code. If I open Terminal on MacOS and then type Final clue! $global:__VSCodeOriginalPrompt;Start-Transcript -Path (New-TemporaryFile).FullName;Write-Progress "a"; yarn --version 2>&1; Stop-Transcript; |
Prerequisites
Summary
An ANSI escape sequence is emitted and script execution is blocked until you hit Enter a bunch of times.
PowerShell Version
Visual Studio Code Version
Extension Version
ms-vscode.powershell@2025.0.0
Steps to Reproduce
Run on MacOS in VS Code
Details
Visuals
Logs
No response
The text was updated successfully, but these errors were encountered: