Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【咨询】两个patch如果有相同的 Key应该如何处理 #67

Open
vlaw opened this issue Feb 12, 2024 · 0 comments
Open

【咨询】两个patch如果有相同的 Key应该如何处理 #67

vlaw opened this issue Feb 12, 2024 · 0 comments

Comments

@vlaw
Copy link

vlaw commented Feb 12, 2024

有如下的俩个文件

# patch#1: emoji_suggestion
patch:
  switches/@next:
    name: emoji_suggestion
    reset: 1
    states: ["🈚️", "🈶️"]
# patch#2: symbol_suggestion
patch:
  switches/@next: # 猜测是先合并
    name: symbol_support
    reset: 1
    states: [ "无符", "符" ]
__patch:
  - patch/+:
      __include: emoji_suggestion:/patch
 - patch/+:
      __include: symbol_suggestion:/patch

预期:都以 追加的方式合并的编译后的文件中
实际效果:后者覆盖了前者

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

No branches or pull requests

1 participant