Skip to content

Commit

Permalink
Loosen virtualVueFile check from #1979
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Aug 4, 2020
1 parent 827b24d commit b3f54e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/services/typescriptService/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function isVueFile(path: string) {
* to be used in TS Language Service
*/
export function isVirtualVueFile(path: string, projectFiles: Set<string>) {
return path.endsWith('.vue.ts') && projectFiles.has(path.slice(0, -'.ts'.length));
return path.endsWith('.vue.ts') && (!path.includes('node_modules') || projectFiles.has(path.slice(0, -'.ts'.length)));
}

/**
Expand Down

0 comments on commit b3f54e3

Please sign in to comment.