PowerShell / PowerShell/PowerShellEditorServices
Start-EditorServices freezes terminal
未关闭
还没有人认领这个 Issue。
Issue-Bug
Needs: Triage
- 主要语言
- C#
- 星标
- 767
- 派生
- 266
- 平均合并
- 3 天 16 小时
- 30 天内合并 PR
- 1
描述
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 PowerShell Editor Services itself and does not reproduce in a standalone PowerShell instance, and is not an issue with my editor.
- I have verified that I am using the latest version of PowerShell Editor Services.
- If this is a security issue, I have read the security issue reporting guidance.
Summary
I ran into this issue when my VSCode debugger broke after an VSCode update. After some troubleshooting I discovered that the issue originates from PowerShellEditorServices. When starting Editor services, the console hangs on a never ending blinking cursor.
PowerShell Version
Name Value
---- -----
PSVersion 7.4.7
PSEdition Core
GitCommitId 7.4.7
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Editor Version
VSCode 1.96.0, but also a "normal" terminal
PowerShell Editor Services Version
Unknown, cannot fetch information from $pseditor.
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Manifest 7.0.0.0 Microsoft.PowerShell.Management {Add-Content, Clear-Content, Clear-Item, Clear-ItemProp…
Binary 4.2.0 PowerShellEditorServices Start-EditorServices
Script 2.3.6 PSReadLine {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove…
Steps to Reproduce
Import-Module "C:\Users{username}.vscode\ms-vscode.powershell-2025.0.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1"
start-EditorServices
Visuals
No response
Logs
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从报告中的 Import-Module 路径和 Start-EditorServices 命令开始,在普通终端中以及通过 VSCode 1.96.0 重现冻结问题。收集启动输出或日志,因为报告中没有提供这些内容,并确定 Editor Services 从哪里开始停止响应。完成的标准是 Start-EditorServices 能够完成,且不会让终端停留在光标闪烁的状态。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, powershell
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100