@vue/typescript-plugin 3.0.7 → 3.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common.js +2 -2
- package/lib/requests/utils.js +1 -1
- package/package.json +3 -3
package/lib/common.js
CHANGED
|
@@ -125,8 +125,8 @@ function getCompletionEntryDetails(language, getCompletionEntryDetails) {
|
|
|
125
125
|
const { fileName } = args[6].__isAutoImport;
|
|
126
126
|
const sourceScript = language.scripts.get(fileName);
|
|
127
127
|
if (sourceScript?.generated?.root instanceof language_core_1.VueVirtualCode) {
|
|
128
|
-
const
|
|
129
|
-
if (!
|
|
128
|
+
const { vueSfc } = sourceScript.generated.root;
|
|
129
|
+
if (!vueSfc?.descriptor.script && !vueSfc?.descriptor.scriptSetup) {
|
|
130
130
|
for (const codeAction of details?.codeActions ?? []) {
|
|
131
131
|
for (const change of codeAction.changes) {
|
|
132
132
|
for (const textChange of change.textChanges) {
|
package/lib/requests/utils.js
CHANGED
|
@@ -15,7 +15,7 @@ function getComponentType(ts, program, fileName, components, tag) {
|
|
|
15
15
|
if (!componentSymbol) {
|
|
16
16
|
const name = getSelfComponentName(fileName);
|
|
17
17
|
if (name === (0, shared_1.capitalize)((0, shared_1.camelize)(tag))) {
|
|
18
|
-
componentType = getVariableType(ts, program, fileName, '
|
|
18
|
+
componentType = getVariableType(ts, program, fileName, '__VLS_export')?.type;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/typescript-plugin",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.1.0-alpha.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"**/*.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@volar/typescript": "2.4.23",
|
|
17
|
-
"@vue/language-core": "3.0.
|
|
17
|
+
"@vue/language-core": "3.1.0-alpha.0",
|
|
18
18
|
"@vue/shared": "^3.5.0",
|
|
19
19
|
"path-browserify": "^1.0.1"
|
|
20
20
|
},
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"@types/node": "^22.10.4",
|
|
23
23
|
"@types/path-browserify": "^1.0.1"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "adcbd8b1a7bf432844230755de999d22b95dc160"
|
|
26
26
|
}
|