Repository navigation
fix(desktop): Core 固定版本改到 Lithe-core-rust#56 的合入提交 - #1976
Merged
Merged
Conversation
This was referenced Nov 15, 2026
xiaoyumuxi
marked this pull request as ready for review
November 15, 2026 10:57
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
#1975 把
PINNED_CORE_REVISION固定到了268d9a2,也就是 Lithe-core-rust#55 当时的分支头。这个提交不在 Core main 上:4a2ecb3)只带了targetBindings.adapterArguments。cwd←target.directory那次提交是合入后才推到分支上的,没有进 main。9425469。桌面端发版只认 Core main 上的提交,分支删掉后
268d9a2也可能取不到,所以要把固定版本改到9425469。268d9a2和9425469只差shared/plugins/reference/protocol-changelog.md的一行(#56 单独占一行),代码、契约、schema 和 fixture 完全一致(git diff --stat 268d9a2 9425469只列出这一个文件)。桌面端行为不变。改动 / Changes
scripts/desktop/build-desktop-core.sh:PINNED_CORE_REVISION从268d9a2937a6d49708a05ba36c98562c79e5119c(优化 macOS UI 布局与交互体验 #55 分支头)改为9425469bdaa5a8195d9cdf5e9f440165c9e79810(Feat/lsp 添加 LSP 面板,将 LSP 全部内容都整合到 Rust core 里面 #56 在 Core main 上的 squash 提交);9425469,targetBindings.cwd可读target.directory),再写它下面的 优化 macOS UI 布局与交互体验 #55(4a2ecb3,adapterArguments和env.<变量>),其余历史不变。不在本 PR 范围内 / Out of scope
feat/debug-adapter-named-arguments就没有引用了,可以删除。类型专属:fix
复现与根因
git merge-base --is-ancestor 268d9a2 origin/main,返回非 0,说明 main 固定的 Core 提交不在 Core main 上。期望固定的是 main 上的提交。cwd←target.directory),所以分支头和合入提交不一致。检查项
git diff --stat 268d9a2 9425469只有更新记录一个文件;git merge-base --is-ancestor 9425469 origin/main成立PINNED_CORE_REVISION只在scripts/desktop/build-desktop-core.sh定义,构建和测试脚本都从这里读范围检查 / Scope checks
功能矩阵 / Feature matrix
N/A:没有用户可观察变化,
plugin-debug-adapters的说明已在 #1975 更新。插件归属 / Plugin ownership
N/A:只改了 Core 固定版本和注释,没有改宿主代码、测试或资源。
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
debugAdapters0 内的补充)PINNED_CORE_REVISION已升到 Core main 上的9425469;桌面端测试经scripts/desktop/desktop-go.sh读到的就是这份契约发行包与资源 / Bundle and resources
N/A:没有新增或修改运行时资源。
无用代码与重构 / Dead code and refactoring
验证 / Verification
cd desktop && ../scripts/desktop/desktop-go.sh test ./internal/workbench/ ./internal/pluginservice/ -count=1(固定 9425469,重新构建 Core)node scripts/e2e-host.mjs --source <本仓库> --ref fix/core-pin-56-merge(插件包来自 Go main8595a25)TestOfficialGoPluginDebugsEachProjectOfAWorkspaceWithDelve、TestOfficialGoPluginBuildsAndServesAModule,以及projectgen的 5 个TestGoPlugin*git diff --stat 268d9a2 9425469shared/plugins/reference/protocol-changelog.mdgit merge-base --is-ancestor 9425469 origin/main未能执行的检查和原因:
提交前确认 / Final checks
main(612e90989)创建,目标分支main