All notable changes are listed below.
Documentation of the Change log started at version 0.3.1. All version prior 0.3.1 were beta variations.
- Tag associations can now be applied to singular HTML tags.
- All HTML comments are forcefully ignored from formatting. PrettyDiff has issues parsing nested comments, it is better to avoid HTML comment formatting all together, you can override this by setting
ignore_comments: false
in the HTML language ruleset. - JSON
<script type="application/json">
and<script type="application/ld+json">
tags are now formatted by default.
- Cleaned up the configuration and pattern object builders
- Parser defaults are now reset on every format
- Liquid in JSON is now supported, Liquid syntax contained within
application/json
,application/ld+json
is now highlighted. Syntax contained within JSON property value strings is also supported, eg:"prop": "{{ code }}"
- Liquid Object Property values are no consistently highlighted.
- Grammar injection modifications
- Front matter captures modification which prevents syntax breaking when tripple dash is used.
- Remove typescript server reference in package.json
- Fix yaml frontmatter grammar injections in JS, TS and JSX files.
- Fix embedded block yaml frontmatter injections in JSON schema.
- Drop template literal support. Grammar injections now handle this by default. Use Lit HTML or other string literal extensions.
- Fix incorrect categorey typo in snippets.
- Fix denotation highlighting in template literal.
- HTML syntax highlighting within Template Literals.
- HTML Intellisense supported in Template Literals.
- JavaScript Template literal
export
support keyword.
Example of new Liquid template literals:
// Basic
liquid`
<div>
{{ foo }}
</div>
`
// Includes export and path, uses backets)
// Supports the `rollup-liquid-export` plugin
liquid`export path/file {
<div>
{{ foo }}
</div>
}
- Minor grammar adjustments for literal support
- Minify and bundle the extension with rollup (includes prettydiff in output)
- Fixes .vscodeignore extension packinging, was previously includeing node_modules and other files.
- String highlighting
{% include dir/src.ext %}
when no single or double commas are used ininclude
and/orinclude_relative
tag is used.
- Fixes comment syntax injection highlighting issue
- Ignore tag wrapper now use newline when applied
- Documentation improvement.
- Fixes class extension for generating
.liquidrc
file - Improve documentation.
- Fixes Typo in
JSON
language default configuration - Minor improvement on documentation
- Fixes Tag Association implementation. Tag associations were removing enforced tag formats, this version fixes this new integration.
- Expose and enforce
false
on theunformatted
rule which sorts tag attributes in html and have their insides preserved. This is a HTML rule item.
- Enforce
false
on for HTML language formatting tag sorting
Minor fix upon release of v2.0.0
- Removed the deprecations helper, no need for this.
Version 2.0.0 was a complete overhaul of the extension. Some breaking changes were applied and a new approach to grammars and formatting was implemented.
- Rules can now use a
.liquidrc
JSON file to define code style formatting rules - Errors will be published to output along with PrettyDiff parser errors.
- Support for
.ts
and.jsx
files - You can now associate tags to a formatting language rule
- Grammar is now used as an injection, no longer overwriting languages.
- Configuration rules now use
liquid.rules
opposed toliquid.beautify
. - Deprecated
liquid.formatIgnore
in favor of using anignore
property in theliquid.rules
setting object. - New apporach to formatting and changed the way the extension works.
- Support Shopify section
schema
settings snippets
- Support
liquid
template literal
- Support
Markdown
files (.md) - Various syntax fixez for
SCSS
,CSS
andJS
Syntax support - Add
braces
rule in shopify sectionsschema
block - Expose the
correct
rule for HTML Formtting.
- Support
CSS
(.css.liquid) files and syntax
- Fix
=
entity other attribute name syntax highlighting issue
- Fixed semi-colon in schema tags
- Updated PrettyDiff Version
- Added
brace_block
formatting rule which allows newlines to be placed before and after shopify section blocks. - Fixed
{% style %}
formatting. Formatting rules inherit those set withinstylesheet
.
- Added Folding marker integration
- Complete overhaul on syntax definitions.
- Support syntax highlighting for SCSS Liquid
.scss.liquid
files - Support syntax highlighting for JavaScript Liquid
.js.liquid
files - Support syntax highlighting within
<script>
tags
- Minor overhaul on syntax definitions, leverages variable tags.
- Fixes Shopfy
{% javascript %}
and{% schema %}
syntax highlighting. - Make new literal string highlighting injection more sane
- Format tmLanguage, bring sanity to the ever growing file.
- Added support for literal string injection syntax highlighting, applying liquid syntax to HTML tag attributes inject highlights, partial close for https://github.com/panoply/vscode-liquid/issues/10.
- Revert and re-open #7 comment tags formatting issue caused by PrettyDiff. Issue still not resolved within the PrettyDiff Sparser.
- Updated readme to include the specifics regarding enforced ignore tags.
- Fixes #7 comment tags formatting issue caused by PrettyDiff.
- Added default support for
.jekyll
extension files. - Added Frontmatter snippet, enabled when doublde dash is detected, eg:
--
- Accepts any word following underscore case for
{% include_* %}
tags. This is to help with plugins like Jekyll Cached which will use{% include_cached %}
.
- Exposed ignore tags option to configuration settings. Allows for tags to be ignored when formatting.
- Various bug fixes
- Better Documentation
- Fixed
{% include %}
tag syntax highlighting when using with Jekyll. - Added attribute syntax highlighting, any
attr="tag"
code occurances in liquid tags. - Adjusted test files to make more sense.
- Added
block
anditem
to support syntax class
- Fix disable
- Add status bar icon
Various fixes, modifications and updates in this version. The extension is now leveraging classes and source was re-wrote.
- Added
---
frontmatter to configurations- Schema blocks to folding markers
- Ignore frontmatter Jekyll when formatting
- Keybinding of
cmd + shift + l
can be used
- Changes
- Rewrote source files
- Updated readme.
- Disabled extensions in development host
- Updated readme
- Changed name to simply "Liquid"
This version will support formatting by default for any files using a .html
, *.html
or .liquid
extension when the liquid.format
setting is set to true
.
Extension Changes:
- Changed extension display name from "Shopify Liquid" to just "Liquid" as the extension now supports Jekyll and basically all Liquid variations.
Added Jekyll Support:
- Jekyll Frontmatter
- Jekyll objects like
{{ page }}
and{{ jekyll }}
Fixed Formatting issues:
- Fixed enable/disable
- Code adjustments
Various Bug fixes
Additional fixes and ES6 development environment.
- Use backup editor configuration for tab size
- Upgraded to extension code to ES6
- Switched air-bnb eslint for standard
- Exposed options of PrettyDiff for each code block.
- Beautify on save will be enabled when "editor.formatOnSave" is
true
β Which means you can use the Formatting Toggle extension to enable and disable liquid formatting.
Fixes various bugs and the extension now allows
- Exposed options of PrettyDiff for each code block.
- Beautify on save will be enabled when "editor.formatOnSave" is
true
β Which means you can use the Formatting Toggle extension to enable and disable liquid formatting.
Version 1.0.0 is a complete overhaul.
The extension now supports liquid formatting. Single file section were removed and will be supported in a seperate extension.
Additionally, several development dependencies were added to better handle development workflow.
- Formatting support added in using PrettyDiff.
- Single File Sections support was removed.
- Removed Single File Section snippets
- Directory re-structure
- Updated README.md file.
This version now supports HTML intellisense within .liquid
files. This comes at the expense of Liquid snippets being applied when working with .html
files.
This extension now works to extended upon the HTML language where in previous versions it worked more as its own langauge.
- Additional
.html.liquid
extension support.
- Language name, was
Shopify Liquid (HTML)
now isHTML
- Removed bracket
- Eliminated the need to implement Emmet in user configuration.
- Removed Usage from documentation.
- SCSS stylesheet complains of incorrect syntax
- Support for
{% style %}{% endstyle %}
tags added.
- Re-write liquid matchers.
This release supports @schema('*')
tag imports for Single File Sections. Snippets now support Single File section HTML tags and various logic re-works.
- import schema tag
@schema('*')
- snippet helpers for single file sections.
- Tests for new schema import
- Added deeper level snippet for
{% schema %}
liquid tag. - Added additional information in readme about Single File Sections.
- Included import tags within readme file along with some minor edits.
- Fixed placeholder number for liquid stylesheet and javascript tag
- Prefixed liquid sections snippets from "Tag" to "Liquid Tag" to avoid confusion with single file section snippet helpers.
This version now supports snippets forked from vscode-liquid-snippets. Prior to this release using vscode-liquid-snippets required an external dependency.
If you're using the vscode-liquid or vscode-liquid-snippets extensions then it's safe to remove them as this release now support both syntax and snippets.
- Forked vscode-liquid-snippets and added snippet support.
- Added HTML support usage to readme
- Adjusted format of readme
- Reverted
<
and>
from configuration to avoid conflicts.
Injection single file section tags now support dash -
string matches.
- Additional Regex match
- Added change log.
- Modified readme.md file name.
- Updated
single-file-sections.js
test file.