### Problem to solve / 要解决的问题 编辑器无法快速、直观的获取当前代码位置, 如:com.xxxx.xxxx.DemoClass#goHome(String,Intger)#L137 ,即为DemoClass 类的goHome(String,Intger)方法,在DemoClass 文件中的137行 ### Proposed solution / 建议方案 右键->复制引用位置 ### Target platform / 目标平台 Windows ### Area / 模块 Editor / 编辑器 ### Priority / 优先级 P1 / 尽快处理:使用体验大幅下降,但通常仍可继续使用 ### Alternatives considered / 已考虑的替代方案 _No response_ ### Additional context / 补充信息 _No response_ ### Checklist / 提交前检查 - [x] I searched existing issues for duplicates. / 我已搜索现有 Issue,确认没有重复建议。
Activity
lithe-support commentedon Nov 16, 2026
已在当前
main(cad5656005288a7ef5897abd9d15494d2faf2fde)用 Linux 上的 VIVA 无头模式复现,开始处理这项功能。复现与定位
TestVisualCopyReferenceLocation在现有实现上按预期失败:editor context menu is missing "复制引用位置"(英文场景为对应英文标签)。4 个场景合计 2.47 秒。缺口有两层:
desktop/internal/workbench/editor_menu.go没有复制当前位置引用的菜单动作;标签页现有“复制路径 / 引用”实际只提供绝对路径和相对路径。documentSymbols链路能取得语言服务器返回的包、类、方法名称和范围,但当前固定的 Rust Core(957a349a5d8b571d416925c8231509572c2053f5)没有生成“符号引用 + 当前行号”的通用接口。因此这属于功能尚未接通,不是 Windows 剪贴板单独失效。实现计划
com.example.DemoClass#goHome(String,Integer)#L5。没有可靠符号信息时输出文件路径#L5,不猜测包名、参数或类型。本地验证与编码继续进行。配套 Core 改动需要提交到
Lithe-IDEA/Lithe-core-rust;目前 Lithe-Support 的写入白名单只有本仓库,提交前需要解决这个依赖,不能将未包含新接口的 Core 当作已完成接入。feat(editor): wire copy reference location through Viva and Rust Core (…
test(editor): add Viva headless reference menu and clipboard paste sc…
style(editor): align Viva Go files with gofmt (#2015)
fix(build): restore executable permission on desktop Core builder (#2015
lithe-support commentedon Nov 16, 2026
修复进展(Lithe-Support)
之前的 Core 仓库写入白名单限制已经解除。现已按仓库规范以 Bot 身份完成两端代码提交,Issue 暂不关闭:
editor.copyReferenceLocation、符号范围选择、方法签名保留、无可靠符号时文件路径回退、契约文档及共享 fixture。最新 Core HEAD7836c6c的 Linux/Core gate/SDK/契约检查均通过。documentSymbols、过期答复隔离及剪贴板写入;有 Go 回归测试和 Viva Headless 4 组合 × 菜单/实际粘贴的截图测试源码。两个 PR 都保持 Draft、目标 main,均未合并。正式验收前需要真实运行无头测试并上传生成的 PNG(不伪造截图)。
test(editor): expose symbol-copy lifecycle and clipboard diagnostics (#…
test(editor): wait for exact documentSymbols operation before injecti…
feat(editor): port #2015 Viva copy-reference feature onto current mai…
fix(editor): pin integrated Core with nullable symbol children support (
chore(editor): pin formatted Core integration SHA for #2015
fix(editor): 复制源码位置在文档已修改时清掉过期请求,去掉测试里的调试日志 (#2015)
fix(editor): 复制源码位置等待语言服务器符号设上限,右键位置随菜单关闭失效 (#2015)
feat(editor): 复制代码引用(同步最新 main,替代 #2043) (#2046)