PowerShell / PowerShell/PowerShellEditorServices
Bring your own ReadLine
未关闭
还没有人认领这个 Issue。
Area-ReadLine
Issue-Bug
Up for Grabs
- 主要语言
- C#
- 星标
- 767
- 派生
- 266
- 平均合并
- 3 天 16 小时
- 30 天内合并 PR
- 1
描述
The Problem
I am unable to create a web based script editor with a terminal because both PSReadline and LegacyReadLine ultimately call Console.GetKey and Console.Write, causing the input and output to be mapped to the calling process’s Console.
Suggested Fix
Add a -UseUnderlyingHostReadline switch and change the following code:
To call _underlyingHostUI.ReadLine() if -UseUnderlyingHostReadline is specified
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 ReadLine 实现中的 EditorServicesConsolePSHostUserInterface.cs 开始,跟踪主机选项的配置方式。检查应在哪里声明和传递 -UseUnderlyingHostReadline 开关,然后验证启用它后会使用底层主机 UI 的 ReadLine,同时默认行为保持不变。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, powershell
- 领域
- developer-experience, tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100