janja-language-server 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/service.js +6 -0
  2. package/package.json +2 -2
package/dist/service.js CHANGED
@@ -24,6 +24,9 @@ const directives = [
24
24
  ['endcapture', 'endcapture'],
25
25
  ['with', 'with ${1:value} }}$0{{ endwith'],
26
26
  ['endwith', 'endwith'],
27
+ ['stylesheet', 'stylesheet }}$0{{ endstylesheet'],
28
+ ['endstylesheet', 'endstylesheet'],
29
+ ['stylesheets', 'stylesheets'],
27
30
  ].map(([label, snippet]) => ({ label, kind: 'directive', snippet }));
28
31
  const keywords = [
29
32
  'and',
@@ -112,6 +115,9 @@ const directiveDocs = {
112
115
  call: '`{{ call name(args) }}...{{ endcall }}`\n\nInvokes a macro; the body is rendered where the macro has `{{ caller }}`.',
113
116
  capture: '`{{ capture name }}...{{ endcapture }}`\n\nRenders the body into a variable instead of the output.',
114
117
  with: '`{{ with value }}...{{ endwith }}`\n\nRenders the body in a scope made of the properties of `value` only.',
118
+ stylesheet: '`{{ stylesheet }}...{{ endstylesheet }}`\n\nCo-locates CSS with a section or snippet (Shopify `{% stylesheet %}`). Collected at compile time; writes nothing where it appears.',
119
+ endstylesheet: '`{{ endstylesheet }}`\n\nCloses a `stylesheet` block.',
120
+ stylesheets: '`{{ stylesheets }}`\n\nEmits a `<style>` with every collected stylesheet body. Place in the layout `<head>`; only the first occurrence runs.',
115
121
  break: '`{{ break }}`\n\nEnds the innermost loop.',
116
122
  continue: '`{{ continue }}`\n\nSkips to the next iteration of the innermost loop.',
117
123
  super: '`{{ super }}`\n\nInside a block, renders the definition this block replaced.',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "janja-language-server",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Language server for Janja templates: diagnostics, completions and formatting",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  "README.md"
41
41
  ],
42
42
  "dependencies": {
43
- "janja": "^4.1.0",
43
+ "janja": "^4.3.0",
44
44
  "vscode-languageserver": "^10.1.2",
45
45
  "vscode-languageserver-textdocument": "^1.0.15"
46
46
  },