Repository navigation
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
AliceJump
commented
Dec 3, 2026
AliceJump
left a comment
Owner
Author
There was a problem hiding this comment.
Walkthrough
本 PR 作为 #41 的第三阶段拆分(基于 #50),新增模板/位置资源的 Python 引用查找、悬停定位与发布前预览,并针对拆分前版本修复了 Split/Packed 预览目标隔离、确认期间配置变更复核以及 Webview 就绪定位同步问题。
| Layer / File(s) | Summary |
|---|---|
引用查找与悬停入口 (src/templateReferences.ts, src/hoverLinks.ts, src/providers.ts, src/extension.ts) |
在掩码注释与多行文档字符串后匹配 <alias>.<name>、self.pos.<name> 与普通字符串键;优先读取编辑器未保存缓冲区并在每个异步边界校验 features.root。 |
资源视图定位 (src/run/resourcesView.ts, media/resources/app.js) |
引入 ready 状态与绑定 root 的 pendingReveal,在 library 消息中原子携带 reveal 目标并自动切换至模板标签选中对应卡片。 |
发布预览与事务保护 (src/publishPreview.ts, src/templateAssetPanel.ts) |
按实际 split / packed 格式读取目标目录已发布模板集合,在 confirmPublishPreview 与 beforePositionWrite 中引入签名与 confirmationVersion 循环复核,防止确认期间配置或项目切换导致过期写入。 |
国际化、文档与测试 (l10n/*, package*.json, scripts/test_*.js, docs/*) |
补充 6 语种本地化词条及覆盖引用解析、Webview 定位握手、Split/Packed 发布预览和并发配置篡改拦截的回归测试。 |
代码实现严谨,#41 原方案中的 Split/Packed 预览混淆、确认等待期 A → B → A 状态漂移、Webview 冷启动 reveal 丢失以及文档字符串/行内注释误匹配问题均已在本 PR 中得到闭环解决并有完整单测覆盖,未发现阻断问题。
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.
问题与范围
这是 #41 的第三阶段,基于 #50 增加资源引用查找、编辑器定位和发布前预览。旧实现的预览固定按 Packed 展示、混用所有已发布名字,且新增的确认等待可能使之前通过的发布校验过期。
改动
验证
npm test、npm run package、git diff --check通过。依赖
Base 为 #50 的
feat/ui-p1-workbench,本层仅 3 个提交、37 个文件。依赖合并后同步 main,再确认新 HEAD 的 CI 与 CodeRabbit 覆盖。统一发布版本随后单独准备。Part of #41.