PowerShell / PowerShell/PowerShellEditorServices

Refactor EditorUIService to use LSP showMessage and showMessageRequest

未关闭
#2,179 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

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

描述

Prerequisites
  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
Summary

EditorUIService currently uses custom messages to handle prompts. They should use the LSP spec for this instead so it doesn't have to be handled special in the client.

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#window_showMessageRequest

Proposed Design

Replace existing messaging with LSP but keep methods the same if possible to avoid breaking.

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先定位 EditorUIService,并查看其当前如何处理自定义提示消息。阅读链接的 LSP 3.17 window/showMessageRequest 规范,然后识别现有的消息方法,并确定它们是否可以在使用 LSP 消息传递的同时保留其签名;当提示使用标准 LSP 消息且无需客户端进行特殊处理时,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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