Repository navigation
feat(settings): 为 Python 设置添加效果预览 - #12
Merged
Merged
Conversation
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
Go Support 的语言设置在表单上方显示效果预览。Python Support 使用同一套插件视图机制,让用户修改诊断和补全选项时能先看到示例效果。
改动 / Changes
settings.preview。预览按需启动,读取宿主传入的设置和语言,以宿主主题令牌绘制。不在本 PR 范围内 / Out of scope
类型专属:feat
多平台对齐
范围检查 / Scope checks
docs/feature-matrix.md记录实现与各平台验证状态。python-settings-preview-{dark,light}-{saved,draft}.png。litheLogging,失败沿用统一事件,高频预览成功通过suppress_success_diagnostics静默。包内测试检查成功事件未产生日志。l10n/zh-Hans.json。宿主 i18n 静态检查通过。ui: 0、settingRegions及lithe/function/invoke。无需调整 Core 或桌面固定版本。验证 / Verification
cargo fmt --manifest-path backend/Cargo.toml --check、严格 Clippy、cargo test --locked --manifest-path backend/Cargo.tomlnode scripts/package.mjs --platform darwin-arm64、node --test --test-timeout=60000 scripts/package/*.test.mjs、node scripts/test.mjsTestPythonPluginSettingsPreview645a3aee8和 Lithe 0.8.135b72074c9的真实包无头设置页均通过,中文深色和英文浅色覆盖已保存默认值、未保存草稿及无写入。单次计时 7.27 秒。.py高亮、当前文件运行、显式解释器覆盖、手动运行与依赖树 4/4。新增预览用例的中英文两个子场景也通过,耗时 7.03 秒。git diff --check通过。PR CI 12/12 通过,包括六平台打包、Store 校验、Windows 双架构命令测试和桌面端到端测试。
本地验证使用 macOS ARM64。Windows 与 Linux 原生设置窗口未运行。插件 CI 验证其他平台的包和命令。
提交前确认 / Final checks
main的98df575创建独立分支,目标为main。