Skip to content

feat(file-associations): add shared catalog and conflict plans - #186

Merged
xiaoyumuxi merged 2 commits into
mainfrom
feat/settings-file-associations
Nov 23, 2026
Merged

xiaoyumuxi merged 2 commits into
mainfrom
feat/settings-file-associations

Conversation

@xiaoyumuxi

@xiaoyumuxi xiaoyumuxi commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

改动说明

application.fileAssociations.catalog 将宿主提供的内置高亮元数据投影为可注册的文本后缀;application.fileAssociations.plan 对用户明确选择进行校验、排序并检测系统默认处理程序或自有注册信息是否在确认期间发生变化。规则排除文件名模式、压缩/编译容器和全文件兜底,限制扩展名为原生打包清单可表达的安全 ASCII 后缀。macOS 内容类型别名和 Windows UserChoice 的平台行为在共享契约中说明。

同一改动更新 rust-core-api.md 命令表、应用边界文档和 file-associations-v1.json fixture,fixture 覆盖高亮目录过滤、排序去重、.c++/.h++、长度上限、选择冲突和输入错误。

依赖与验证

对应需求:1lck/Lithe-IDEA#2360

宿主 Draft PR:1lck/Lithe-IDEA#2361

请先合入本 Core PR,再合入宿主 PR。若以 squash 合入导致提交哈希改变,宿主合入前需同步更新 Core pin。

已通过:

  • cargo test --manifest-path rust/Cargo.toml -p lithe-core-rules --test file_associations_fixture(2 项)
  • cargo test --manifest-path rust/Cargo.toml -p lithe-core protocol::command::tests::api_command_table_lists_exactly_the_parsed_commands -- --exact(1 项)
  • cargo fmt --manifest-path rust/Cargo.toml --all -- --check
  • LIBSQLITE3_SYS_USE_PKG_CONFIG=1 cargo clippy --manifest-path rust/Cargo.toml -p lithe-core-rules --all-targets --target x86_64-pc-windows-msvc -- -D warnings
  • Core 注释规范检查、平台测试放置检查

提交前更新的 main 含有其他已合入改动,PR 仅包含本功能 Core 提交及同步 main 的 merge commit。

@xiaoyumuxi
xiaoyumuxi marked this pull request as ready for review November 23, 2026 11:59
@xiaoyumuxi
xiaoyumuxi merged commit 9c8e89a into main Nov 23, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant