Repository navigation
feat(file-associations): add shared catalog and conflict plans - #186
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.
改动说明
application.fileAssociations.catalog将宿主提供的内置高亮元数据投影为可注册的文本后缀;application.fileAssociations.plan对用户明确选择进行校验、排序并检测系统默认处理程序或自有注册信息是否在确认期间发生变化。规则排除文件名模式、压缩/编译容器和全文件兜底,限制扩展名为原生打包清单可表达的安全 ASCII 后缀。macOS 内容类型别名和 Windows UserChoice 的平台行为在共享契约中说明。同一改动更新
rust-core-api.md命令表、应用边界文档和file-associations-v1.jsonfixture,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 -- --checkLIBSQLITE3_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提交前更新的
main含有其他已合入改动,PR 仅包含本功能 Core 提交及同步main的 merge commit。