Repository navigation
fix(run): restore current-file actions and debugger attach - #2246
Merged
Merged
Conversation
1lck
marked this pull request as ready for review
November 20, 2026 17:13
36 of 37 tasks
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
用户打开已有 Java 主类后,行号栏能运行,标题栏的“当前文件”却可能提示没有入口。连接式调试有时会在 Run 控制台留下 JDWP 握手失败,并且需要用户手动切到 Debug 才能看到断点和变量。
改动 / Changes
不在本 PR 范围内 / Out of scope
#1761 的非 Maven 构建流程仍有其他场景,本次验证当前文件入口。Gradle 首次同步的 10 秒版本检查超时也能复现,重试后同步成功,本次未修改 Gradle 插件。
类型专属:fix
复现与根因
831e21068)引入的标题栏路径仅使用构建提供者入口。feat(desktop): 服务运行按调试类型连接其他插件的调试适配器 (#2107) #2113(1ce4085e7)的 TCP 探测会先连接再断开。既有附加路径也没有前台显示 Debug。检查项
TestCurrentFileUsesAnEditorRunActionWithoutABuildEntrypoint原先收到无入口通知,TestRunAttachShowsDebugWindow原先启动附加后面板未打开。插件服务的TestRunDebuggeeFirstConnectionBelongsToTheAdapter原先检测到探针抢占了第一个连接。修复后通过。.agents/notes/implemented/bug-fix/2026-11-13-viva-plugin-run-debug-lifecycle.md。范围检查 / Scope checks
功能矩阵 / Feature matrix
plugin-backend-run-start、run-current-file-entrypoint、viva-title-run-debug。整项验收状态保留 pending。插件归属 / Plugin ownership
cargo test --workspace --locked -j 2,463 项通过。另在 macOS 安装市场版 Java Support 4.2.1、Maven 1.0.2、Gradle 2.0.0 复测。UI 验证 / UI evidence
LITHE_VISUAL_OUTPUT_DIR=… ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/workbench -run '^TestVisualRun(OnCurrentFile|AttachShowsDebugWindow)$' -v生成当前文件运行和附加后切到 Debug 的截图。截图为 2400×1640,覆盖浅色英文与深色中文。统一日志系统 / Structured logging
界面文案 / i18n
N/A。本次没有新增或改写文案。
逻辑归属 / Logic placement
性能与内存 / Performance and memory
设置 / Settings
N/A。未改设置。
插件契约 / Plugin contract
N/A。未改契约、能力版本、SDK 或宿主方法。
发行包与资源 / Bundle and resources
无用代码与重构 / Dead code and refactoring
验证 / Verification
test -p 1 ./...test -p 1 ./...(更新 Viva 固定版本前)test -race检查 workbench、pluginservice、sysinfo(较早的 Core 固定版本)answer = 42。普通 Java 继续后正常退出,Run 中无 JDWP 握手报错。Gradle 手动停止成功git diff --checkcargo test --workspace --locked -j 2(Java 插件仓库)未能执行的检查和原因
提交前确认 / Final checks
origin/main为基线,目标为main。