Start-Transcript + Write-Progress + yarn + MacOS: ^[[23;1R
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- macos, powershell, vscode
- 领域
- devtools
调研方向
在 macOS 上的 VS Code 终端中,使用 Start-Transcript、Write-Progress、yarn --version 和 Stop-Transcript 运行提供的 test.ps1,然后将其与所描述的外部 zsh 和 pwsh -File 行为进行比较。完成的标准是:不再输出 ANSI 转义序列,并且执行不需要反复按 Enter。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- TypeScript
- 星标
- 1.9k
- 派生
- 548
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PowerShell/vscode-powershell 的其他 Issue
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 62/100
PowerShell/vscode-powershell#5599 · 3 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
PowerShell/vscode-powershell#5592 · 2 条评论 · 1 个 reaction ·
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 62/100
PowerShell/vscode-powershell#5583 · 1 条评论 ·
-
powershell.scriptAnalysis.settingsPath (Description): Warning Message Should Provide A Workaround 未关闭Area-Code Formatting Issue-Enhancement
难度 1/5 1 小时以内 新手友好度 68/100
PowerShell/vscode-powershell#4653 · 3 条评论 · 4 个 reaction ·
-
agentic-workflows
难度 3/5 1-2 天 新手友好度 48/100
PowerShell/vscode-powershell#5606 ·
查看 PowerShell/vscode-powershell 的全部 Issue
相似的 Issue
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
Mend: dependency security vulnerability untriaged
难度 2/5 1-3 小时 新手友好度 70/100