Closed gitKrystan closed 1 year ago
With invalid hbs, the plugin will add a newline before the closing <template> tag.
<template>
https://user-images.githubusercontent.com/14152574/216177509-2957586b-15ff-4509-809a-a5572ceacd3e.mp4
<template> {{#if oops}} </template>
A newline is added before the closing <template> tag. If format-on-save is enabled, a new newline will be added on every save!
Invalid hbs should result in Prettier being a no-op, bug logging an error:
// log SYNTAX ERROR: ...
I think this issue is the cause: https://github.com/prettier/prettier-vscode/issues/691
I strongly suspect this is a duplicate of https://github.com/gitKrystan/prettier-plugin-ember-template-tag/issues/42
🐞 Describe the Bug
With invalid hbs, the plugin will add a newline before the closing
<template>
tag.https://user-images.githubusercontent.com/14152574/216177509-2957586b-15ff-4509-809a-a5572ceacd3e.mp4
🔬 Minimal Reproduction
😕 Actual Behavior
A newline is added before the closing
<template>
tag. If format-on-save is enabled, a new newline will be added on every save!🤔 Expected Behavior
Invalid hbs should result in Prettier being a no-op, bug logging an error:
🌍 Environment