Skip to content

Commit 3d18695

Browse files
committed
fix: template code mapping confusion when incremental update with error
close #2151
1 parent 19cc0f5 commit 3d18695

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vue-language-tools/vue-language-core/src/sourceFile.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ export class VueSourceFile implements SourceFile {
160160
plugin,
161161
};
162162
}
163+
else {
164+
VueSourceFile.compiledSFCTemplateCache = undefined;
165+
}
163166

164167
return {
165168
errors,

0 commit comments

Comments
 (0)