Skip to content

Commit d407159

Browse files
committed
fix(language-service): only check globalTypesPath for FS files
1 parent d80cfee commit d407159

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/language-service/lib/plugins/vue-global-types-error.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ export function create(): LanguageServicePlugin {
1717
if (!info) {
1818
return;
1919
}
20-
const { root } = info;
20+
const { sourceScript, root } = info;
21+
if (sourceScript.id.scheme !== 'file') {
22+
return;
23+
}
2124

2225
const { vueCompilerOptions } = root;
2326
const globalTypesPath = vueCompilerOptions.globalTypesPath(root.fileName);

0 commit comments

Comments
 (0)