@vue/language-service 3.1.6 → 3.1.7
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/plugins/vue-template.js +12 -8
- package/package.json +4 -4
|
@@ -544,7 +544,7 @@ function create(ts, languageId, { getComponentNames, getComponentProps, getCompo
|
|
|
544
544
|
version++;
|
|
545
545
|
})());
|
|
546
546
|
}
|
|
547
|
-
const
|
|
547
|
+
const codegen = language_core_1.tsCodegen.get(root.sfc);
|
|
548
548
|
const names = new Set();
|
|
549
549
|
const tags = [];
|
|
550
550
|
for (const tag of components) {
|
|
@@ -555,13 +555,17 @@ function create(ts, languageId, { getComponentNames, getComponentProps, getCompo
|
|
|
555
555
|
names.add(tag);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
|
|
559
|
-
const name
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
558
|
+
if (codegen) {
|
|
559
|
+
for (const name of [
|
|
560
|
+
...codegen.getImportComponentNames(),
|
|
561
|
+
...codegen.getSetupExposed(),
|
|
562
|
+
]) {
|
|
563
|
+
if (tagNameCasing === 0 /* TagNameCasing.Kebab */) {
|
|
564
|
+
names.add((0, language_core_1.hyphenateTag)(name));
|
|
565
|
+
}
|
|
566
|
+
else {
|
|
567
|
+
names.add(name);
|
|
568
|
+
}
|
|
565
569
|
}
|
|
566
570
|
}
|
|
567
571
|
for (const name of names) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/language-service",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"data",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@volar/language-service": "2.4.26",
|
|
21
|
-
"@vue/language-core": "3.1.
|
|
21
|
+
"@vue/language-core": "3.1.7",
|
|
22
22
|
"@vue/shared": "^3.5.0",
|
|
23
23
|
"path-browserify": "^1.0.1",
|
|
24
24
|
"volar-service-css": "0.0.67",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@volar/kit": "2.4.26",
|
|
38
38
|
"@volar/typescript": "2.4.26",
|
|
39
39
|
"@vue/compiler-dom": "^3.5.0",
|
|
40
|
-
"@vue/typescript-plugin": "3.1.
|
|
40
|
+
"@vue/typescript-plugin": "3.1.7",
|
|
41
41
|
"vscode-css-languageservice": "^6.3.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "20dcd47c0cb4ce30e2c5e3ef1986ce297c218a06"
|
|
44
44
|
}
|