[Feature]: Disable toml file formatting when running shopify app dev
What area(s) will this request affect?
Running your code locally
What type of change do you want to see?
Substantial change to existing feature
Overview
Could you add an option to disable formatting when running shopify app dev? Or perhaps format it with the editor's default formatter?
Motivation
It formats differently than the Even Better TOML VScode extension - annoying.
Thanks for the suggestion. Could you provide some examples of what's being formatted differently?
cc: @nickwesselman
@gonzaloriestra here you go
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.
P.S. You can learn more about why we stale issues here.
Still relevant and still annoying 😅
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.
P.S. You can learn more about why we stale issues here.
Not stale. Stale bot sucks.
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.
P.S. You can learn more about why we stale issues here.
Not stale. Please disable the stale bot. It makes it seem like you don't care to hear from people using your software.
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.
P.S. You can learn more about why we stale issues here.
STILL not stale. Please disable the sucky bot.
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.
P.S. You can learn more about why we stale issues here.
Not stale. And that bot still sucks.
The latest version of the CLI (3.79) has an experimental new toml parser that shouldn't affect your custom formatting.
To try it set this environment variable: SHOPIFY_CLI_USE_WASM_TOML_PATCH=1.
Let us know if it works!
Didn't quite help here. Left side is formatted with even better toml, right is running npm run dev with the same domain and with that env. By formatting again it goes back to the left
Is it updating the values in redirect_urls when running app dev?
The CLI won't affect the format for lines is not updating (because it literally doesn't touch them), but if it needs to update a field it doesn't know how to "keep" a format (it can be anything!)
We are working towards not updating the toml at all during dev, stay tuned for updates :)
I'll close this issue since this is all we can do for now. There is no need for the env var in the latest version btw, is the default behaviour.