Skip to content

Start-Transcript + Write-Progress + yarn + MacOS: ^[[23;1R #5159

Open
@dkattan

Description

@dkattan

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

Image

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugA bug to squash.Needs: TriageMaintainer attention needed!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions