Skip to content

Commit a1580f6

Browse files
committed
fix(language-core): avoid unrelated virtual code recomputes on template change
1 parent 882928a commit a1580f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ const plugin: VueLanguagePlugin = ctx => {
4747
},
4848

4949
resolveEmbeddedCode(_fileName, sfc, embeddedFile) {
50+
if (!embeddedFile.id.startsWith('template_inline_ts_')) {
51+
return;
52+
}
5053
// access template content to watch change
5154
void sfc.template?.content;
5255

0 commit comments

Comments
 (0)