@vue/typescript-plugin
Advanced tools
@@ -105,3 +105,3 @@ "use strict"; | ||
if (sourceScript?.generated?.root instanceof language_core_1.VueVirtualCode) { | ||
const sfc = sourceScript.generated.root._vueSfc(); | ||
const sfc = sourceScript.generated.root.vueSfc; | ||
if (!sfc?.descriptor.script && !sfc?.descriptor.scriptSetup) { | ||
@@ -177,3 +177,3 @@ for (const codeAction of details?.codeActions ?? []) { | ||
if (root instanceof language_core_1.VueVirtualCode) { | ||
const { template } = root._sfc; | ||
const { template } = root.sfc; | ||
if (template) { | ||
@@ -180,0 +180,0 @@ for (const componentSpan of getComponentSpans.call({ typescript: ts, languageService }, root, template, { |
@@ -21,3 +21,3 @@ "use strict"; | ||
const maps = script ? [...language.maps.forEach(script.code)].map(([_sourceScript, map]) => map) : []; | ||
const sfc = root._sfc; | ||
const { sfc } = root; | ||
sourceFile.forEachChild(function visit(node) { | ||
@@ -24,0 +24,0 @@ if (ts.isPropertyAccessExpression(node) |
@@ -156,3 +156,5 @@ "use strict"; | ||
const [name, props] = data; | ||
components[name] = props; | ||
if (name in components) { | ||
components[name] = props; | ||
} | ||
} | ||
@@ -159,0 +161,0 @@ else { |
{ | ||
"name": "@vue/typescript-plugin", | ||
"version": "2.2.2", | ||
"version": "2.2.4", | ||
"license": "MIT", | ||
@@ -17,3 +17,3 @@ "files": [ | ||
"@volar/typescript": "~2.4.11", | ||
"@vue/language-core": "2.2.2", | ||
"@vue/language-core": "2.2.4", | ||
"@vue/shared": "^3.5.0" | ||
@@ -24,3 +24,3 @@ }, | ||
}, | ||
"gitHead": "30757908b67f40f779c36795665163634fb81868" | ||
"gitHead": "c28986596935cb43979c9d437c25f292bdb36cef" | ||
} |
62600
-20.55%35
-18.6%1373
-21.81%