Skip to content

Commit 83ddb4b

Browse files
authored
fix(language-core): re-parse template when interpolation syntax breaks (#5971)
1 parent dbaa710 commit 83ddb4b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/language-core/lib/plugins/vue-template-html.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ const plugin: VueLanguagePlugin = ({ modules }) => {
179179
if (!tryUpdateNode(node.content)) {
180180
return false;
181181
}
182+
if (node.content.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION) {
183+
const { content } = node.content;
184+
if (content.includes('{{') || content.includes('}}')) {
185+
return false;
186+
}
187+
}
182188
}
183189
else if (node.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION) {
184190
if (withinChangeRange(node.loc)) { // TODO: review this (slot name?)

0 commit comments

Comments
 (0)