Skip to content

Commit

Permalink
Support auto-completion on every preset setting
Browse files Browse the repository at this point in the history
  • Loading branch information
aswamy committed Jan 16, 2025
1 parent c74850c commit 0de2a0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-radios-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/theme-language-server-common': patch
---

[Bug fix] Support auto-completion on every preset setting
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,5 @@ export class PresetsSettingsPropertyCompletionProvider implements JSONCompletion
}

function isPresetSettingsPath(path: JSONPath) {
return path.at(0) === 'presets' && path.at(1) === 0 && path.at(2) === 'settings';
}

function isTranslationKey(path: string) {
return path.startsWith('t:');
return path.at(0) === 'presets' && path.at(2) === 'settings';
}

0 comments on commit 0de2a0f

Please sign in to comment.