Skip to content

Releases: joshdaugherty/vscode-antlers-css-validation

v0.1.2

Choose a tag to compare

@joshdaugherty joshdaugherty released this 02 Mar 15:15

This release aligns the extension with the approach used by Antlers Toolbox: .antlers.html is treated as HTML instead of a separate language, so you get full HTML behavior (validation, IntelliSense, Emmet) by default. It also makes this extension the single source of CSS validation for HTML when the built-in validator is off.

Highlights

  • Extend HTML instead of a separate language — Contributes .antlers.html and .antlers.htm to the built-in HTML language and registers a grammar for html that adds Antlers syntax. No files.associations needed; .antlers.html is HTML with Antlers highlighting.
  • No duplicate CSS errors — Sets the default html.validate.styles to false so the built-in validator doesn’t report false “identifier expected” / “} expected” on #{{ 'module-' + id }} and similar. This extension then validates <style> for all HTML.
  • Style validation for all HTML — Validates CSS inside <style> in every HTML document: Antlers-aware for .antlers.html (strips {{ ... }} then validates), standard for plain .html / .htm (validates as-is). One extension handles both.
  • Coexistence with Antlers Toolbox — Safe to use alongside Stillat’s extension; both contribute to the same HTML language. Only one grammar applies (by load order).

Breaking change

  • .antlers.html is now HTML — The previous “Antlers” language id is no longer used. If you had "files.associations": { "**/*.antlers.html": "antlers" }, you can remove it.

Upgrade

After installing v0.1.2, reload the window. If you still see duplicate CSS diagnostics in .antlers.html, ensure html.validate.styles is not overridden to true in your settings.

v0.1.1

Choose a tag to compare

@joshdaugherty joshdaugherty released this 02 Mar 14:38

Add license information to package-lock.json

v0.1.0

Choose a tag to compare

@joshdaugherty joshdaugherty released this 27 Feb 21:25

Initial release