Repository navigation
fix(navigation): 跟随项目 JDK,缺少 Java 8 源码时跳到 rt.jar 声明 - #16
Merged
Merged
Conversation
…sing Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1lck
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
多套 JDK 并存时,Java Support Lite 使用 Lithe 为当前工作区解析的 Java 安装。打开 JDK 定义时,标签页显示版本和来源,例如
String [JDK 1.8.0_512 - rt.jar].java,真实源码保留原文和行号。tools.java并传递安装路径。宿主未提供 Java 工具时,仍可启动并按JAVA_HOME、系统默认 JDK、常见安装目录查找。javac绝对路径时,跟随实际编译器所在的 JDK。只声明release、source、target不会覆盖安装选择。显式传入的安装没有可导航归档时,保留项目内导航。src.zip。Java 8 缺少源码时,复用依赖 JAR 的类声明生成器按需读取jre/lib/rt.jar或lib/rt.jar,类、方法和成员类均可继续跳转。只读副本保存在插件状态目录。验证
Linux 安装包通过实际插件后端解析并启动 LSP,覆盖工作区 JDK 8 与系统 17 冲突、Maven 指定编译器、无工具时自动发现、已选 JDK 缺少归档时继续跳项目代码。全量竞态测试、vet、六个平台打包、商店校验和 Linux 安装包启动检查通过。
Windows Server 2022 x64 / Desktop 0.8.19 的最终提交
4acf2ee通过四组原生桌面验证。每组先确认项目内Helper跳转正常,系统JAVA_HOME和PATH均指向 JDK 17。String.length()的结果1.8.0_512 - rt.jar的方法声明1.8.0_512 - src.zip的方法体,可见return value.length;项目绑定使用仅注册公共
java工具定义的测试插件。所有导航均由 Lite 提供。Windows 全量 Go 测试通过,父 POM 匹配与版本不匹配另用最终 LSP 二进制验证。未单独测试 Windows 11。0.8.19 仍允许在磁盘只读副本中输入,保存时被系统拒绝。Link to Devin session: https://app.devin.ai/sessions/af5104d04ddb42b0ad9a9f6f87267aca
Open in Devin Desktop: https://app.devin.ai/desktop/session/af5104d04ddb42b0ad9a9f6f87267aca?variant=devin
Requested by: @1lck