Repository navigation
feat(desktop): support bidirectional implementation navigation and gutter icons - #2391
Merged
Merged
Conversation
8 tasks done
This was referenced Nov 24, 2026
14 tasks done
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.
关联 Issue / Linked issue
PR 类型 / Type
改动说明 / What changes
背景 / Why
用户反馈在接口定义和实现类之间无法像 IntelliJ IDEA 那样通过左侧绿色
I/ 蓝色O行首图标直观识别并双向跳转,也缺少统一的Go to Implementation与Go to Super Declaration入口。改动 / Changes
scripts/desktop/build-desktop-core.sh的PINNED_CORE_REVISION升级至1310ee36258230e83fe1513ab71b67e2af157edd(含Lithe-IDEA/Lithe-core-rust#198)。desktop/internal/core/plugin_session.go的EditorHost.ActionIcons中新增navigate-implemented、navigate-implementing、navigate-overridden、navigate-overriding。desktop/internal/icons/gutter_nav.go:新增 16x16 亮色/暗色多层图标(绿色I↓/I↑、蓝色O↓/O↑及上下箭头回退)。desktop/internal/editorview/lineicons.go、lineicons_test.go:实现零分配LineIconAt命中测试并屏蔽软换行续行。desktop/internal/workbench/editor_actions.go、editor_view.go、root.go、theme.go:支持同行navigate-up/navigate-down双通道并排渲染、主题切换缓存刷新、悬停 Tooltip 展示、Suppress启动提示及多目标定位跳转。desktop/internal/workbench/editor_menu.go、pluginsemantics.go、pluginsemantics_view.go、documents.go、document_links.go:补充Go to Implementation(Opt+Cmd+B,走标准 LSPtextDocument/implementation)、Go to Super Declaration(Cmd+U)以及fileURILocalPath。shared/i18n/messages.json、locales/en-US.json、locales/zh-CN.json、desktop/internal/i18n/shared.generated.go:补充 6 条共享中英文词条并重新生成。shared/platform-feature-matrix/features/lsp-navigation-edits.json、plugin-editor-actions.json:登记实现情况(真机verificationStatus保持pending)。editoractions_test.go、pluginsemantics_test.go,新增无头截图测试navigation_gutter_visual_test.go。不在本 PR 范围内 / Out of scope
lithe-plugin-java与lithe-plugin-java-navigation中提交与发布)。类型专属:feat
多平台对齐
范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/lsp-navigation-edits.json与plugin-editor-actions.json(真实窗口验证保持pending)./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh(validated 222 platform capabilities).artifacts/下生成的矩阵视图插件归属 / Plugin ownership
editor.actions/ LSPimplementation通用扩展点,无具体插件名称或依赖引用UI 验证 / UI evidence
TestVisualNavigationGutter(覆盖light-en、light-zh-Hans、dark-en、dark-zh-Hans,共 16 张截图,并人工检查了悬停提示与暗色多目标弹窗渲染)统一日志系统 / Structured logging
界面文案 / i18n
shared/i18n/生成并已运行verify-app-language-localization.mjs与generate-i18n.mjs --check(12651/12651)逻辑归属 / Logic placement
editorActions.decode校验及语义规则保持在 Rust Core(Lithe-IDEA/Lithe-core-rust#198)性能与内存 / Performance and memory
LineIconAt保持零分配;运行editor-bench.sh显示 24 项BenchmarkEditorViewPaint/*与BenchmarkEditorViewScroll/*均为0 B/0 allocs/op设置 / Settings
N/A:未新增或修改设置项。
插件契约 / Plugin contract
Lithe-IDEA/Lithe-core-rust#198已先合入并更新协议更新记录scripts/desktop/build-desktop-core.shPINNED_CORE_REVISION已升级至1310ee36258230e83fe1513ab71b67e2af157edd发行包与资源 / Bundle and resources
./scripts/desktop/verify/verify-runtime-bundle-immutability.sh通过无用代码与重构 / Dead code and refactoring
验证 / Verification
TestVisualNavigationGutter(-tags "vivahead lithevisual")2.42s, 4 theme/locale variants)./scripts/desktop/desktop-go.sh test -count=1 ./internal/core ./internal/editorview1310ee36)./scripts/desktop/desktop-go.sh test -count=1 -run '^(TestEditor|TestFileURILocalPath|TestImplementation|TestPluginToolWindowUsesPackageIconAcrossThemes)' ./internal/workbench1310ee36)4.120s)verify-app-language-localization.mjs&generate-i18n.mjs --check12651/12651)verify-platform-feature-matrix.sh&verify-runtime-bundle-immutability.sh未能执行的检查和原因:
提交前确认 / Final checks
origin/main变基,无临时产物提交