-
Notifications
You must be signed in to change notification settings - Fork 39
Comparing changes
Open a pull request
base repository: Shopify/theme-tools
base: 8af587dd29350cf91a9a7f6effb60eee3c0b05f0
head repository: Shopify/theme-tools
compare: 304d9c8e3c7685fb85e8ddb2f79d5b278291d5bc
Commits on Feb 7, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 8bee608 - Browse repository at this point
Copy the full SHA 8bee608View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e4613b - Browse repository at this point
Copy the full SHA 2e4613bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e3ba41d - Browse repository at this point
Copy the full SHA e3ba41dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d628ec8 - Browse repository at this point
Copy the full SHA d628ec8View commit details -
Merge pull request #763 from Shopify/example-tag-hover-support
Example tag hover support
Configuration menu - View commit details
-
Copy full SHA for bffb95b - Browse repository at this point
Copy the full SHA bffb95bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5eaf295 - Browse repository at this point
Copy the full SHA 5eaf295View commit details -
Add hover support for named parameters in {% render %} snippet tags (#…
…766) ## What are you adding in this PR? Closes Shopify/developer-tools-team#510 **Param with description and type. `@param {String} param-name - description`**  **Param with no description `@param {String} param-name`** <img width="274" alt="Screenshot 2025-02-06 at 3 28 46 PM" src="https://github.com/user-attachments/assets/ba21e22f-56a9-422e-b71b-7fae157a6d1a" /> **Param with no type. `@param param-name - desc` ** <img width="195" alt="Screenshot 2025-02-06 at 3 28 50 PM" src="https://github.com/user-attachments/assets/3f273864-9238-4b8b-bdc1-a064a058a654" /> **Param with no description no type `@param param-name`** <img width="267" alt="image" src="https://github.com/user-attachments/assets/d67050ca-dc87-478c-942d-471d33b9e30d" /> **Non-Existent Param** - This should be caught in the theme check, so we don't hover anything here ## What's next? Any followup issues? Shopify/developer-tools-team#550 ## Before you deploy - [x] I included a minor bump `changeset` - [x] My feature is backward compatible
Configuration menu - View commit details
-
Copy full SHA for 8765ff6 - Browse repository at this point
Copy the full SHA 8765ff6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e897754 - Browse repository at this point
Copy the full SHA e897754View commit details -
Merge pull request #771 from Shopify/jm/fix-node-type-errors
[Fix] Add nodeType to RenderSnippetParameterHoverProvider test fixtures
Configuration menu - View commit details
-
Copy full SHA for aa17e98 - Browse repository at this point
Copy the full SHA aa17e98View commit details
Commits on Feb 10, 2025
-
Configuration menu - View commit details
-
Copy full SHA for b0c77b6 - Browse repository at this point
Copy the full SHA b0c77b6View commit details -
Theme check for settings keys inside presets and default (#742)
* Move `block-utils` to common `utils` folder * Add `ValidSettingsKey` check for schema
Configuration menu - View commit details
-
Copy full SHA for 055cef7 - Browse repository at this point
Copy the full SHA 055cef7View commit details -
Add LiquidDoc parsing support for @description annotation
----- We can parse multiple descriptions for a given LiquidDoc, though we will only use the first one if multiple are present. This logic will come in future PRs. We are NOT adding support for implicit descriptions, which are descriptions that are provided before any other annotations are provided - reference: https://jsdoc.app/tags-description
Configuration menu - View commit details
-
Copy full SHA for c4bbf3b - Browse repository at this point
Copy the full SHA c4bbf3bView commit details -
[LiquidDoc] Parser support for
@description
annotation (#767)## What are you adding in this PR? Closes Shopify/developer-tools-team#503 This adds parsing for a `@description` annotation. - This annotation can span multiple lines, similar to `@example` - This annotation can be defined anywhere in the `liquiddoc` body. It will match until end of input or until the next `@` - We are NOT supporting implicit descriptions here - [issue](Shopify/developer-tools-team#558) ## What's next? Any followup issues? Prettier support Shopify/developer-tools-team#504 ## What did you learn? - Did a little more reading on [Lexical vs Syntactic rules ](https://ohmjs.org/docs/syntax-reference#syntactic-lexical). Still stewing on what this means in practice, though I think this will help us with whitespace handling. It seems like syntactic rules are useful for high-level grammar structure ## Before you deploy - [x] I included a minor bump `changeset` - [x] My feature is backward compatible
Configuration menu - View commit details
-
Copy full SHA for da56038 - Browse repository at this point
Copy the full SHA da56038View commit details -
Configuration menu - View commit details
-
Copy full SHA for b882641 - Browse repository at this point
Copy the full SHA b882641View commit details -
[LiquidDoc] Rename
exampleContent
tocontent
in concrete example ……nodes (#772) ## What are you adding in this PR? Just a quick cleanup to make the attribute accessor a little more consistent with the other types. No functional change at all.
Configuration menu - View commit details
-
Copy full SHA for 0b3cdbb - Browse repository at this point
Copy the full SHA 0b3cdbbView commit details
Commits on Feb 11, 2025
-
Update the document manager on git operations (#775)
* Update the document manager on git operations Tricky part was to not invalidate the cache twice for the same change. Lots of LSP lifecycle messages (onDidCreateFiles, onDidRenameFiles, onDidDeleteFiles, onDidSaveTextDocument) were fired before the onDidChangeWatchedFile events. Had to do a little trick to avoid invalidating the cache twice for those. Fixes #692 * Do all cache invalidation in changeWatchedFiles instead * Defend against out of order operations
Configuration menu - View commit details
-
Copy full SHA for e3e1dfd - Browse repository at this point
Copy the full SHA e3e1dfdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43e411c - Browse repository at this point
Copy the full SHA 43e411cView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9c1d98 - Browse repository at this point
Copy the full SHA e9c1d98View commit details -
Add completion support for content_for parameters (#745)
* Add support for parsing incomplete content_for tags * Add completion support for content_for parameters
Configuration menu - View commit details
-
Copy full SHA for d9dbc26 - Browse repository at this point
Copy the full SHA d9dbc26View commit details -
Configuration menu - View commit details
-
Copy full SHA for a410fbe - Browse repository at this point
Copy the full SHA a410fbeView commit details -
Move
getSnippetDefinition
totheme-check-common
(#778)## What are you adding in this PR? Moving the `liquidDoc` module from `theme-language-server-common` to `theme-check-common`. This is where `visit` lives, and allows us to us `getSnippetDefinition` in both `theme-language-server-common` and `theme-check-common` ## What's next? Any followup issues? Improving type adherence [here](https://app.graphite.dev/github/pr/Shopify/theme-tools/779/Modify-getSnippetDefinition-to-return-undefined-when-liquidDoc-header-is-not-present) This is all work I'm doing to enable / improve our ability to write theme checks ## Before you deploy - [x] I included a minor bump `changeset` - [x] My feature is backward compatible
Configuration menu - View commit details
-
Copy full SHA for 5c54d85 - Browse repository at this point
Copy the full SHA 5c54d85View commit details
Commits on Feb 12, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 7b02a67 - Browse repository at this point
Copy the full SHA 7b02a67View commit details -
Improve type system adherence of getSnippetDefinition
- Modify getSnippetDefinition to return an empty liquidDoc object when doc header is present but empty - Return only the snippet name when no doc header is found
Configuration menu - View commit details
-
Copy full SHA for d32afb7 - Browse repository at this point
Copy the full SHA d32afb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a5e2c9 - Browse repository at this point
Copy the full SHA 5a5e2c9View commit details -
Merge pull request #773 from Shopify/fd-remove-discussions-link
Update README.md
Configuration menu - View commit details
-
Copy full SHA for 8f4f8b3 - Browse repository at this point
Copy the full SHA 8f4f8b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 87345c3 - Browse repository at this point
Copy the full SHA 87345c3View commit details -
Merge pull request #782 from Shopify/six-shopify-patch-1
Update PULL_REQUEST_TEMPLATE.md
Configuration menu - View commit details
-
Copy full SHA for 9381f70 - Browse repository at this point
Copy the full SHA 9381f70View commit details
Commits on Feb 13, 2025
-
Modify getSnippetDefinition to return undefined when liquidDoc header…
… is not present (#779) ## What are you adding in this PR? Before this PR, we weren't actually adhering to the types properly. **We weren't returning undefined when expected** ``` export type SnippetDefinition = { name: string; liquidDoc?: LiquidDocDefinition; }; type LiquidDocDefinition = { parameters?: LiquidDocParameter[]; examples?: LiquidDocExample[]; }; ``` Now, when: - `{% doc %}` header **is not present** -> `.liquidDoc` is `undefined` - `{% doc %}` header is **empty** -> `.liquidDoc` is `{}` - `@param` or `@example` are not provided -> `liquidDoc.param` or `liquidDoc.example` are `undefined` respectively This provides more granularity for how we handle hover, checks, etc. ## What's next? Any followup issues? This enables us to write better theme checks for LiquidDoc ## Before you deploy - [x] I included a patch bump `changeset`
Configuration menu - View commit details
-
Copy full SHA for 9a4cfc9 - Browse repository at this point
Copy the full SHA 9a4cfc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1c6abe - Browse repository at this point
Copy the full SHA b1c6abeView commit details -
Merge pull request #785 from Shopify/test-helper-should-throw
`check` test helper shouldn't silently swallow errors
Configuration menu - View commit details
-
Copy full SHA for aa5bd7c - Browse repository at this point
Copy the full SHA aa5bd7cView commit details -
Merge pull request #780 from Shopify/add-dev-yml
add dev.yml with tooling versions
Configuration menu - View commit details
-
Copy full SHA for 05bac7e - Browse repository at this point
Copy the full SHA 05bac7eView commit details
Commits on Feb 14, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 2db3047 - Browse repository at this point
Copy the full SHA 2db3047View commit details
Commits on Feb 15, 2025
-
Add ValidRenderSnippetParams check for snippet render validation
- Verify required parameters are provided - Detect and report unknown parameters - Add configuration for the new check in recommended and all configs
Configuration menu - View commit details
-
Copy full SHA for fe84a17 - Browse repository at this point
Copy the full SHA fe84a17View commit details -
Configuration menu - View commit details
-
Copy full SHA for ee40a1e - Browse repository at this point
Copy the full SHA ee40a1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4db48ac - Browse repository at this point
Copy the full SHA 4db48acView commit details -
Improve edge case handling of theme check fix suggestions for unknown…
… and missing parameters Update default value for object type parameters to 'empty'
Configuration menu - View commit details
-
Copy full SHA for 06b96c5 - Browse repository at this point
Copy the full SHA 06b96c5View commit details
Commits on Feb 18, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 261c295 - Browse repository at this point
Copy the full SHA 261c295View commit details -
[LiquidDoc][Theme Check] Report missing and unrecognized snippet para…
…meters in render tag (#791) ## What are you adding in this PR? Closes Shopify/developer-tools-team#516 Closes Shopify/developer-tools-team#517 This introduces theme checks inside the `{% render `snippet-name` %}` snippet tag: - **Missing parameters** -> Report - **Unrecognized parameters** -> report + suggest fix to remove unrecognized parameters (not in liquid doc) https://github.com/user-attachments/assets/09ff6efa-265a-4e1a-b495-4ab3d0f755f8 Requirements - **Will only report missing parameters if** `snippet-name` refers to a `snippet` with a valid `{% doc %}` header is present **and @params** are defined. - Currently, we don't report for alternative syntaxes for render including - `using with / for` (_planned_) - referencing a `VariableLookup` rather than providing `snippet-name` as a string (_not planned - explanation in code_) ## What's next? Any followup issues? 1) [Type support](https://app.graphite.dev/github/pr/Shopify/theme-tools/792/Implement-a-new-Theme-Check-to-validate-parameters-provided-to-snippets-Check-for-missing-required-parameters-Validate-parameter-types-Report-unknown-parameters) 2) Support for aliases (?) ## Before you deploy - [x] This PR includes a new checks or changes the configuration of a check - [x] I included a minor bump `changeset` - [x] It's in the `allChecks` array in `src/checks/index.ts` - [x] I ran `yarn build` and committed the updated configuration files <!-- It might be that a check doesn't make sense in a theme-app-extension context --> <!-- When that happens, the check's config should be updated/overridden in the theme-app-extension config --> <!-- see packages/node/configs/theme-app-extension.yml --> - [x] If applicable, I've updated the `theme-app-extension.yml` config <- I believe I don't need to update this, since `TAE` can use snippets, @charlespwd could you please confirm? - [ ] I've made a PR to update the [shopify.dev theme check docs](https://github.com/Shopify/shopify-dev/tree/main/content/storefronts/themes/tools/theme-check/checks) if applicable (link PR here). <- I will create this PR once I also get `type` checks approved (stacked PR for easier review)
Configuration menu - View commit details
-
Copy full SHA for 9ff3459 - Browse repository at this point
Copy the full SHA 9ff3459View commit details -
Theme Rools Release — 2025-02-18 (#770)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 304d9c8 - Browse repository at this point
Copy the full SHA 304d9c8View commit details
There are no files selected for viewing