Skip to content

Commit 84b8f13

Browse files
committed
fix: petite-vue intellisense not working in .html
1 parent 7f918cd commit 84b8f13

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/vue-language-core/src/plugins/vue-tsx.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ const plugin: VueLanguagePlugin = ({ modules, vueCompilerOptions, compilerOption
1818
getEmbeddedFileNames(fileName, sfc) {
1919

2020
const fileNames: string[] = [];
21+
const _gen = useGen(fileName, sfc);
2122

22-
if (!fileName.endsWith('.html')) {
23-
const _gen = useGen(fileName, sfc);
24-
if (_gen?.lang.value && ['js', 'ts', 'jsx', 'tsx'].includes(_gen.lang.value)) {
25-
fileNames.push(fileName + '.' + _gen.lang.value);
26-
}
23+
if (_gen?.lang.value && ['js', 'ts', 'jsx', 'tsx'].includes(_gen.lang.value)) {
24+
fileNames.push(fileName + '.' + _gen.lang.value);
2725
}
26+
2827
if (sfc.template) {
2928
fileNames.push(fileName + '.__VLS_template_format.tsx');
3029
fileNames.push(fileName + '.__VLS_template_style.css');

0 commit comments

Comments
 (0)