Skip to content

feat(editor): add portable symbol reference formatting (#2015) - #70

Merged
xiaoyumuxi merged 6 commits into
mainfrom
lithe-support/issue-2015-copy-reference
Nov 17, 2026
Merged

xiaoyumuxi merged 6 commits into
mainfrom
lithe-support/issue-2015-copy-reference

Conversation

@lithe-support

@lithe-support lithe-support Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

关联 Issue

功能改动

  • 新增 editor.copyReferenceLocation,按传入的零基 UTF-16 位置和 Core 已规范化的 LSP document symbols 生成可复制的引用。
  • 可保留语言服务器返回的包、类、方法及签名,例如 com.example.DemoClass#goHome(String,Integer)#L137;无法可靠匹配时返回 文件路径#L137,不猜测符号、包名或参数类型。
  • 支持嵌套 DocumentSymbol 与平铺 SymbolInformation 的 containerName;行号向用户显示时改为一基。
  • 新增 editor crate 单元测试和 Core dispatcher 跨端共享 fixture,并登记 Rust Core API 命令。

验证和限制

  • Draft / 尚未验证完成:当前执行环境没有 Rust 工具链及完整仓库检出,未实际运行 cargo test。不可将静态审阅当作编译或回归通过。
  • 尚未接入 Viva 菜单和剪贴板,桌面配套 PR 待续。本 PR 不实现可见 UI,因此没有修复后截图;截图应附在对应桌面 PR 中。
  • 不改变已有语言服务器插件契约,不修改特定语言或插件代码。
  • 需要在 CI 中运行编辑器 crate / Core dispatcher / fixture 测试,并完成 macOS、Windows 桌面集成及无头测试,确认后才能标记 ready。

合入顺序

  1. 先验证并合并本 Core PR;
  2. 将 Lithe-IDEA 桌面依赖固定到合入后的 Core commit;
  3. 桌面 PR 完成 Viva 菜单、异步生命周期、剪贴板、中英文和无头截图。

不自动合并。

@xiaoyumuxi
xiaoyumuxi marked this pull request as ready for review November 17, 2026 05:19
@xiaoyumuxi
xiaoyumuxi merged commit 6a29169 into main Nov 17, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant