Skip to content

Commit

Permalink
fix(typescript-vue-plugin): add .vue to root files
Browse files Browse the repository at this point in the history
close #2271
  • Loading branch information
johnsoncodehk committed Jan 5, 2023
1 parent 2fa9ba7 commit 647b3c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vue-language-tools/typescript-vue-plugin/src/index.ts
Expand Up @@ -57,7 +57,10 @@ const init: ts.server.PluginModuleFactory = (modules) => {
getDefaultLibFileName: () => info.project.getDefaultLibFileName(),
getProjectVersion: () => info.project.getProjectVersion(),
getProjectReferences: () => info.project.getProjectReferences(),
getScriptFileNames: () => info.project.getScriptFileNames(),
getScriptFileNames: () => [
...info.project.getScriptFileNames(),
...vueFileNames,
],
getScriptVersion: (fileName) => info.project.getScriptVersion(fileName),
getScriptSnapshot: (fileName) => info.project.getScriptSnapshot(fileName),
getTypeScriptModule: () => ts,
Expand Down

0 comments on commit 647b3c1

Please sign in to comment.