Skip to content

Twig Language 2 0.11.0

Choose a tag to compare

@mblode mblode released this 07 Sep 21:47
3e8ce88

Twig Language 2 0.11.0 replaces PrettyDiff with a formatter built for Twig and HTML. Twig comparisons, nested attribute quotes, conditional HTML wrappers, casing, inline text and raw regions retain their source structure. Safely parseable embedded JavaScript/CSS uses bundled Prettier.

Formatting follows current document settings, works on selections with surrounding context, and runs in a cancellable worker. Incomplete tokens, stale requests and timeouts return no edits.

  • 287 automated tests, including 203 historical source samples and 61 named regressions.
  • Independent official Twig lexer and rendered-output checks.
  • Real VS Code document, selection and save tests on macOS and Linux, including the packaged VSIX.
  • Zero reported production or development dependency vulnerabilities.

Requires VS Code 1.85+. Indentation now defaults to the document. PrettyDiff-only options are deprecated; ambiguous generated JS/CSS and multiline Twig expressions remain unchanged. See the migration guide and complete issue, PR and Marketplace review audit.

CI verification. Download the VSIX below or update through the Visual Studio Marketplace.