We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d80cfee commit d407159Copy full SHA for d407159
packages/language-service/lib/plugins/vue-global-types-error.ts
@@ -17,7 +17,10 @@ export function create(): LanguageServicePlugin {
17
if (!info) {
18
return;
19
}
20
- const { root } = info;
+ const { sourceScript, root } = info;
21
+ if (sourceScript.id.scheme !== 'file') {
22
+ return;
23
+ }
24
25
const { vueCompilerOptions } = root;
26
const globalTypesPath = vueCompilerOptions.globalTypesPath(root.fileName);
0 commit comments