Repository navigation
feat(settings): 插件来源表单支持模块列表、标签页和条目列表(sourceSettings 1) - #2087
Merged
Merged
Conversation
宿主声明 sourceSettings [0,1],渲染 Core #79 新增的模块结构: - 侧栏布局的来源组在表单左侧显示模块树(按 parent 缩进),只显示所选模块; 其他组各占一项。 - 所选模块的字段按 section 分标签页,只有一组时不显示标签。 - entryList 字段:+ − ↑ ↓ 工具栏和属性列标题;添加菜单按条目种类打开原生 文件/目录选择器或候选项对话框;布尔/枚举属性列;只读来源只显示条目。 - 草稿比较忽略条目显示文字;全部移除是显式空列表;插件给出继承值时才 提供重置。 - PINNED_CORE_REVISION 升到 788e61e(含 #79)。 - 功能矩阵、设置 Agent Note、中英词条和无头截图同步更新。 Refs #2086 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
标题保持自身宽度(最多占行宽 60%),说明占剩余空间并优先截断;同步更新截图。 Refs #2086 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
插件设置页目前只能按“表单 / 表格”展示来源,没法像 IDEA“项目结构 → 模块”那样逐个模块配置源目录、输出路径和依赖。Core Lithe-core-rust#79(已合并)在
sourceSettings能力版本 1 里加了侧栏布局、字段分组和有序条目列表;本 PR 让宿主把它们渲染出来。宿主只做通用渲染,不认识任何具体工具。改动 / Changes
pluginhost.Declared()的sourceSettings从[0]改为[0, 1],基线测试同步更新。desktop/internal/core/source_settings.go):来源加parent;字段加section、entryKinds、attributes;新增SourceEntryKind/SourceEntryChoice/SourceEntryAttribute/SourceEntry;草稿输入加entries。layout: "sidebar"的组时,左侧显示模块树(按parent缩进,最多 8 层),右侧只显示所选模块;其他组在树里各占一项。切换模块和标签页不产生草稿,也不读写文件。section分成标签页;只有一组时不显示标签。表单组里的 section 显示为小标题。source_settings_entries.go/source_settings_entries_view.go):file打开原生文件选择器(按扩展名过滤、可多选),directory打开目录选择器,choice打开候选项对话框(只列尚未在列表里的项,带说明,可多选)。达到 256 项上限或没有可选项时对应菜单项禁用。title/detail(与 Core 一致);全部移除是显式空列表,不等于继承;插件给出inheritedValue时才提供“重置”,以免一键清空列表。source_settings_modules_test.go(5 个用例);sourceFormFixture抽出,复用 Core 的plugins/settings-sources-modules.jsonfixture;新增截图场景TestVisualModuleStructureForm。PINNED_CORE_REVISION升到788e61e(含 feat(windows): replace Qt frontend with React/Tauri #79,也带上 refactor: modularize macOS features and source layout #78 的 lsp-engine 修复)。declarative-plugin-settings补能力、证据和验证;设置 Agent Note 增加“模块结构:侧栏、标签页和条目列表”一节。不在本 PR 范围内 / Out of scope
.classpath)、Maven/Gradle 模块只读显示依赖:在 Lithe-IDEA/lithe-plugin-java 另提 PR,插件发 4.0.0 预发布版。类型专属:feat
多平台对齐
desktop/internal/settingswindow),合入后两端都具备;Windows 实机验收仍 pending,功能矩阵如实记录。范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/declarative-plugin-settings.json:能力描述、两端证据、验证和备注;状态保持 partial / pendingverify-platform-feature-matrix.sh和verify-platform-feature-matrix-change.sh origin/main HEAD,均通过.artifacts/下生成的矩阵视图插件归属 / Plugin ownership
settings-sources-modules.json)和虚构插件dev.lithe.test.source-settingsshared/i18n/sourceSettings: 0,宿主现有用例全部通过UI 验证 / UI evidence
LITHE_VISUAL_OUTPUT_DIR=… scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow -run TestVisualModuleStructureForm,提交8b98e4054,场景:依赖页(选中一项)、源目录页、只读模块、添加菜单、候选项对话框;中英文 × 深浅主题,窗口 1120×820统一日志系统 / Structured logging
MarketplaceError回调;取消按“用户取消”标 log-exempt界面文案 / i18n
shared/i18n/verify-app-language-localization.mjs和generate-i18n.mjs --check均通过逻辑归属 / Logic placement
性能与内存 / Performance and memory
设置 / Settings
插件契约 / Plugin contract
PINNED_CORE_REVISION已升到788e61eb62177dff4cb0bfe11a48eed0a1083fb3发行包与资源 / Bundle and resources
verify-runtime-bundle-immutability.sh,通过无用代码与重构 / Dead code and refactoring
sourceEffectiveHint、sourceFormFixture后没有留下无用代码验证 / Verification
scripts/desktop/desktop-go.sh test ./... -count=1(LITHE_CORE_RUST_DIR指向 Core788e61e)desktop-go.sh test ./internal/settingswindow -run 'SourceModule|SourceEntry|ReadOnlyModule|EntryDrafts'desktop-go.sh vet ./internal/settingswindow ./internal/pluginhost ./internal/core、gofmt -lTestVisualModuleStructureForm(vivahead)node scripts/i18n/generate-i18n.mjs --check、verify-app-language-localization.mjsverify-platform-feature-matrix.sh、verify-platform-feature-matrix-change.sh origin/main HEAD./scripts/agent-notes/verify-agent-notes.shverify-test-stability.sh --base origin/mainverify-runtime-bundle-immutability.shrg未能执行的检查和原因: Windows 未编译、未实机验收(共用 Viva 代码,按惯例看 CI);原生文件/目录选择器只能在有窗口的会话里验证,无头测试覆盖了候选项对话框和其余交互。
test-stability-macos.sh的全仓扫描被未跟踪的extension-host/node_modules拦下,改为直接计时新用例。提交前确认 / Final checks
main(a3d146239)创建,目标main🤖 Generated with Claude Code