PowerShell / PowerShell/vscode-powershell
Start-Transcript + Write-Progress + yarn + MacOS: ^[[23;1R
Open
Nobody has claimed this yet.
Issue-Bug
Needs: Triage
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 547
- PR merge metrics
- No merged PRs in 30d
Description
Prerequisites
- I have written a descriptive issue title.
- I have searched all open and closed 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.
- If this is a security issue, I have read the security issue reporting guidance.
Summary
An ANSI escape sequence is emitted and script execution is blocked until you hit Enter a bunch of times.
PowerShell Version
Name Value
---- -----
PSVersion 7.5.0
PSEdition Core
GitCommitId 7.5.0
OS Darwin 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:22 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6041
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Name : ConsoleHost
Version : 7.5.0
InstanceId : 54662023-751e-4a90-bdac-1799cccf6dfb
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
Visual Studio Code Version
1.98.2
ddc367ed5c8936efe395cffeec279b04ffd7db78
arm64
Extension Version
ms-vscode.powershell@2025.0.0
Steps to Reproduce
Run on MacOS in VS Code
# test.ps1
Start-Transcript -Path (New-TemporaryFile).FullName
Write-Progress "a"
yarn --version
Stop-Transcript
PS /Users/user/code> ./test.ps1
Transcript started, output file is /var/folders/c0/vqmgyfpx38q4bwrxrkcgwcyr0000gn/T/tmpMneggD.tmp
1.22.22
^[[6;1R
Details
- Does not happen on VS Code in Windows
- Does not happen from zsh Terminal outside of VS Code when run from `pwsh -File ./test.ps1
Visuals
Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run the provided test.ps1 with Start-Transcript, Write-Progress, yarn --version, and Stop-Transcript in the VS Code terminal on macOS, then compare it with the external zsh and pwsh -File behavior described. Done means the ANSI escape sequence is no longer emitted and execution does not require repeated Enter presses.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, powershell, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100