Skip to content

Add block settings caller migration guidance - #1313

Merged
charlespwd merged 1 commit into
mainfrom
block-settings-caller-migration-diagnostic
Sep 30, 2026
Merged

charlespwd merged 1 commit into
mainfrom
block-settings-caller-migration-diagnostic

Conversation

@charlespwd

Copy link
Copy Markdown
Contributor

In this PR

Give caller-side block.settings.<id>: arguments a setting-specific Theme Check error that teaches the supported plain <id>: syntax.

Problem

The generic dotted-argument error explains that block calls use plain arguments, but authors migrating existing themes still have to infer the exact edit. For block.settings.heading: value, we can point directly from the old form to heading: value.

Solution

Exact block.settings.<id> caller arguments now report:

Liquid syntax error: in 'block' - Use '<id>:' instead of 'block.settings.<id>:' when calling a block.

The diagnostic remains on the first offending argument and still suppresses cascading block parameter errors. Other dotted caller names keep the generic error, and callee-side block.settings.<id> expressions are unchanged.

This includes a patch changeset for @shopify/theme-check-common.

Before merge

Record the release milestone or cleanup issue that will remove this temporary migration copy.

@charlespwd
charlespwd marked this pull request as ready for review September 30, 2026 15:01
@charlespwd
charlespwd requested a review from a team as a code owner September 30, 2026 15:01
@charlespwd
charlespwd merged commit 169ff04 into main Sep 30, 2026
8 checks passed
@charlespwd
charlespwd deleted the block-settings-caller-migration-diagnostic branch September 30, 2026 15:12
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.

3 participants