You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Sorry for the poor title - I'm not sure what to call this)
Syntax: Liquid
When objects are called in Shopify it starts with the type of object - product, variant, etc. In the screenshots below, variant in variant.metafields.acf_variant.disclaimer_message, specifically.
Other themes I've used (including the stock VS Code themes) highlight that object, which makes it much easier to see what type of object is being referenced.
Other themes:
Catppuccin:
The text was updated successfully, but these errors were encountered:
sgoudham
changed the title
[REQUEST] Adding color differentiation to types in object paths
Add color differentiation to types in object paths
Aug 2, 2024
There seems to be some cross cutting concerns here where the textmate grammar highlights user defined variables and shopify builtin objects the same colour. As a result, I wasn't comfortable using red which is our builtin colour.
While it might not make the most sense, I've went with pink to follow the idea of Custom Components in React. See the screenshot shown below:
(Sorry for the poor title - I'm not sure what to call this)
Syntax: Liquid
When objects are called in Shopify it starts with the type of object - product, variant, etc. In the screenshots below,
variant
invariant.metafields.acf_variant.disclaimer_message
, specifically.Other themes I've used (including the stock VS Code themes) highlight that object, which makes it much easier to see what type of object is being referenced.
Other themes:
![image](https://private-user-images.githubusercontent.com/38672484/285089965-ba8a6ad8-b0cc-49db-b58a-392c3e2a61f4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMTY3NTcsIm5iZiI6MTczOTAxNjQ1NywicGF0aCI6Ii8zODY3MjQ4NC8yODUwODk5NjUtYmE4YTZhZDgtYjBjYy00OWRiLWI1OGEtMzkyYzNlMmE2MWY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDEyMDczN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2ZDRjNDg4YWNlN2I3ZmRhOTFlODgzMjNkZTEyYTAyYTg5NWNmM2IzMjQ5OTIwZDg0MjA2YzA3YTNiYTc0ZTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.nx60AxO2YQgQb593Vas-TYLFRIXLEY0rfhH5fPTKr5o)
Catppuccin:
![image](https://private-user-images.githubusercontent.com/38672484/285090002-a8608319-7eba-405a-8599-a21822025746.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMTY3NTcsIm5iZiI6MTczOTAxNjQ1NywicGF0aCI6Ii8zODY3MjQ4NC8yODUwOTAwMDItYTg2MDgzMTktN2ViYS00MDVhLTg1OTktYTIxODIyMDI1NzQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDEyMDczN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg0NjNjZTNjODhjZjRiNjgzYzRlYTIzNjE4YWFjZTE3Nzk4MjFhMWZiMWFkNDIzNTIxMjM0MDllYWVlMTY1ZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qF4QSZEiS28FfVChF6mTVpH-1S0qjeJj3wYU0gQCYhw)
The text was updated successfully, but these errors were encountered: