@vue/language-service 1.7.1 → 1.7.3
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/out/languageService.js +8 -7
- package/package.json +10 -10
package/out/languageService.js
CHANGED
|
@@ -52,22 +52,23 @@ function resolvePlugins(services, vueCompilerOptions, settings) {
|
|
|
52
52
|
result.items = result.items.filter(item => item.label.indexOf('__VLS_') === -1
|
|
53
53
|
&& (!item.labelDetails?.description || item.labelDetails.description.indexOf('__VLS_') === -1));
|
|
54
54
|
// handle component auto-import patch
|
|
55
|
+
let casing;
|
|
55
56
|
for (const [_, map] of _context.documents.getMapsByVirtualFileUri(document.uri)) {
|
|
56
57
|
const virtualFile = _context.documents.getSourceByUri(map.sourceFileDocument.uri)?.root;
|
|
57
58
|
if (virtualFile instanceof vue.VueFile) {
|
|
58
59
|
const isAutoImport = !!map.toSourcePosition(position, data => typeof data.completion === 'object' && !!data.completion.autoImportOnly);
|
|
59
60
|
if (isAutoImport) {
|
|
60
|
-
|
|
61
|
+
const source = _context.documents.getVirtualFileByUri(document.uri)[1];
|
|
62
|
+
for (const item of result.items) {
|
|
61
63
|
item.data.__isComponentAutoImport = true;
|
|
62
|
-
}
|
|
64
|
+
}
|
|
63
65
|
// fix #2458
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
const casing = await (0, nameCasing_1.getNameCasing)(ts, _context, _context.env.fileNameToUri(source.fileName));
|
|
66
|
+
if (source) {
|
|
67
|
+
casing ??= await (0, nameCasing_1.getNameCasing)(ts, _context, _context.env.fileNameToUri(source.fileName));
|
|
67
68
|
if (casing.tag === types_1.TagNameCasing.Kebab) {
|
|
68
|
-
result.items
|
|
69
|
+
for (const item of result.items) {
|
|
69
70
|
item.filterText = (0, shared_1.hyphenate)(item.filterText ?? item.label);
|
|
70
|
-
}
|
|
71
|
+
}
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/language-service",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"update-html-data": "node ./scripts/update-html-data.js"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@volar/language-core": "1.6.
|
|
21
|
-
"@volar/language-service": "1.6.
|
|
22
|
-
"@volar/source-map": "1.6.
|
|
23
|
-
"@vue/compiler-dom": "^3.3.0
|
|
24
|
-
"@vue/language-core": "1.7.
|
|
25
|
-
"@vue/reactivity": "^3.3.0
|
|
26
|
-
"@vue/shared": "^3.3.0
|
|
20
|
+
"@volar/language-core": "1.6.3",
|
|
21
|
+
"@volar/language-service": "1.6.3",
|
|
22
|
+
"@volar/source-map": "1.6.3",
|
|
23
|
+
"@vue/compiler-dom": "^3.3.0",
|
|
24
|
+
"@vue/language-core": "1.7.3",
|
|
25
|
+
"@vue/reactivity": "^3.3.0",
|
|
26
|
+
"@vue/shared": "^3.3.0",
|
|
27
27
|
"volar-service-css": "0.0.2",
|
|
28
28
|
"volar-service-emmet": "0.0.2",
|
|
29
29
|
"volar-service-html": "0.0.2",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"vscode-uri": "^3.0.7"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@volar/kit": "1.6.
|
|
42
|
+
"@volar/kit": "1.6.3"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "0afe0eb39ed144513faddbfa4fddc667e8864cdf"
|
|
45
45
|
}
|