Skip to content

Commit

Permalink
fix: vitepress support stop working
Browse files Browse the repository at this point in the history
close #3238
  • Loading branch information
johnsoncodehk committed Jul 18, 2023
1 parent a73b945 commit 478cb06
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/vue-language-core/src/languageModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export function createLanguage(
createVirtualFile(fileName, snapshot, languageId) {
if (
languageId === 'vue'
|| (
!languageId
&& vueCompilerOptions.extensions.some(ext => fileName.endsWith(ext))
)
|| vueCompilerOptions.extensions.some(ext => fileName.endsWith(ext))
) {
return new VueFile(fileName, snapshot, vueCompilerOptions, vueLanguagePlugin, ts, codegenStack);
}
Expand Down

0 comments on commit 478cb06

Please sign in to comment.