Repository navigation
docs(plugins): Declared() 注释写明构建提供者的调试准备已呈现 - #2200
Merged
Merged
Conversation
#1837 起,构建窗口里目标的“调试”和标题栏对提供者运行配置的“调试”经 PlanBuildDebug/DecodeBuildDebug 让提供者准备程序,再启动运行声明的本插件适配器;注释的“尚未呈现”清单里仍列着它,Core 插件文档据此写错。
xiaoyumuxi
marked this pull request as ready for review
November 19, 2026 10:55
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
桌面端从 #1837 起已经呈现构建提供者的调试准备:
debug.adapter时,桌面端经PlanBuildDebug/DecodeBuildDebug让提供者准备程序,再启动这个运行指定的本插件适配器。TestProviderDebugStartsTheNamedAdapter和TestProviderDebugRefusesAnAdapterThePluginDoesNotInstall。但
pluginhost.go里Declared()上方注释的“尚未呈现”清单仍列着“build provider debug preparation”。Core 插件文档以这段注释为准,所以也写成了尚未呈现,插件作者会以为调试准备在桌面端看不到效果。改动 / Changes
只改
desktop/internal/pluginhost/pluginhost.go的注释:buildSystems and buildProviders一条补上:在目标或标题栏的提供者运行配置上点“调试”,提供者会为声明了本插件适配器(debug.adapter)的运行准备程序,宿主再启动这个适配器。不在本 PR 范围内 / Out of scope
类型专属:docs
.agents/notes/(中文):没有新决策,只更正现状说明debugProviderTarget、PlanBuildDebug、DecodeBuildDebug、两个测试名均已核对)范围检查 / Scope checks
功能矩阵 / Feature matrix
N/A:只改注释,没有用户可观察变化。
插件归属 / Plugin ownership
N/A:只改注释,不涉及具体插件。
UI 验证 / UI evidence
N/A:没有界面变化。
统一日志系统 / Structured logging
N/A:没有日志改动。
界面文案 / i18n
N/A:没有用户可见文字。
逻辑归属 / Logic placement
N/A:没有业务逻辑改动。
性能与内存 / Performance and memory
N/A:没有运行期改动。
设置 / Settings
N/A:没有设置改动。
插件契约 / Plugin contract
N/A:不改契约、能力版本和宿主方法。
发行包与资源 / Bundle and resources
N/A:没有资源改动。
无用代码与重构 / Dead code and refactoring
N/A:只改注释。
验证 / Verification
gofmt -l desktop/internal/pluginhost/debugProviderTarget的调用方(build.go、build_menus.go、build_tree_view.go、title_run.go)和title_run_test.go的两个测试未能执行的检查和原因: 只改注释,没有运行构建和测试。
提交前确认 / Final checks
main创建;目标分支:feat、fix、docs 为main,release 以发布流程要求为准.build/、target/、dist/、.artifacts/等产物,没有凭据、个人路径和未脱敏的日志或截图