PowerShell / PowerShell/PowerShellEditorServices
Add a "scroll to position" function
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 767
- 派生
- 266
- 平均合并
- 3 天 16 小时
- 30 天内合并 PR
- 1
描述
I was looking at implementing some editor commands that scroll to next function/method/thing and none of the current API's scroll. Looks like there was a change at some point that made insert text, set selection, etc not scroll by default in VSCode.
We should implement a new request ShowEditorPositionRequest and add a function (Show-EditorPosition?) to Commands that sends it (and optionally also add it to $psEditor)
The VSCode implementation could use the TextEditor.revealRange method.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先追踪 Commands 如何发送编辑器请求,以及 VSCode 实现如何处理编辑器操作。检查提议的 ShowEditorPositionRequest、Show-EditorPosition 命令和可选的 $psEditor API,然后对照 VSCode TextEditor.revealRange 文档进行比较。完成的标准是该请求和命令能够在 VSCode 中显示所请求的编辑器位置。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, powershell, vscode
- 领域
- developer-experience, devtools
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100