Renaming a section group should update references to that section group

未关闭
#548 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
typescript
领域
tooling

调研方向

首先跟踪 sections/*.json 文件的重命名是如何处理的,以及 {% sections 'oldName' %} 引用和上下文化 section group 的 parent 字段是如何表示的。然后查看 issue 中链接的 section-groups 架构文档,再确定请求的“???”所涵盖的其余引用形式。完成的标准是:重命名后,所有受影响的引用都得到一致更新。

由索引模型根据 Issue 内容生成。

描述

area:language-server enhancement

Is your feature request related to a problem? Please describe.
Follow up of #412, when a sections/*.json file is renamed, we should update references to it.

Describe the solution you'd like
When a sections/*.json file is renamed,

  • Update {% sections 'oldName' %} to {% sections 'newName' %}
  • Update the parent field of contextualized section group files.
  • ???

Additional context
https://shopify.dev/docs/storefronts/themes/architecture/section-groups

主要语言
TypeScript
星标
245
派生
108
平均合并
2 天 8 小时
30 天内合并 PR
24

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Shopify/theme-tools 的其他 Issue

查看 Shopify/theme-tools 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。