Skip to content

Commit

Permalink
fix(language-core): resolveSourceFileName condition incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 21, 2023
1 parent 5110a06 commit 18c4329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/language-core/src/languageModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export function createVueLanguage(
typescript: {
resolveSourceFileName(tsFileName) {
const baseName = path.basename(tsFileName);
if (baseName.indexOf('.vue.')) { // .vue.ts .vue.d.ts .vue.js .vue.jsx .vue.tsx
if (baseName.indexOf('.vue.') >= 0) { // .vue.ts .vue.d.ts .vue.js .vue.jsx .vue.tsx
return tsFileName.substring(0, tsFileName.lastIndexOf('.vue.') + '.vue'.length);
}
},
Expand Down

0 comments on commit 18c4329

Please sign in to comment.