PowerShell / PowerShell/PowerShellEditorServices

Provide a way for implementations to announce supported features

未关闭
#615 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Area-API Issue-Enhancement
主要语言
C#
星标
767
派生
266
平均合并
3 天 16 小时
30 天内合并 PR
1

描述

Right now as far as I can tell there isn't a great way to tell if the editor supports a specific request. For example, if a consumer of the $psEditor API wants to request editor context with $psEditor.GetEditorContext() the only way to know if the editor supports it is to try and possibly fail.

Making things a little more complicated is every request can act a little differently. For instance, powerShell/showChoicePrompt just returns null, where as powerShell/getEditorContext will throw a NullReferenceException.

We should have an API where the editor explicitly states which requests they support. That way an extension module can send only the requests they know will work.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先阅读 issue 中提到的 $psEditor API,以及对 powerShell/getEditorContext 和 powerShell/showChoicePrompt 的处理。完成的标准是:编辑器能够公开其支持的 requests,并且扩展模块能够在发送 requests 之前查询这些信息。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp, powershell
领域
api, backend-api-design, developer-experience
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。