@vue/language-service 2.0.12 → 2.0.14
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/data/language-blocks/cs.json +1034 -0
- package/data/language-blocks/en.json +204 -0
- package/data/language-blocks/fr.json +204 -0
- package/data/language-blocks/it.json +204 -0
- package/data/language-blocks/ja.json +204 -0
- package/data/language-blocks/ko.json +205 -1
- package/data/language-blocks/pt.json +205 -1
- package/data/language-blocks/ru.json +1034 -0
- package/data/language-blocks/zh-cn.json +204 -0
- package/data/model-modifiers/cs.json +176 -0
- package/data/model-modifiers/en.json +36 -0
- package/data/model-modifiers/fr.json +36 -0
- package/data/model-modifiers/it.json +36 -0
- package/data/model-modifiers/ja.json +36 -0
- package/data/model-modifiers/ko.json +36 -0
- package/data/model-modifiers/pt.json +36 -0
- package/data/model-modifiers/ru.json +176 -0
- package/data/model-modifiers/zh-cn.json +36 -0
- package/data/template/cs.json +1498 -0
- package/data/template/en.json +313 -1
- package/data/template/fr.json +315 -3
- package/data/template/it.json +312 -0
- package/data/template/ja.json +313 -1
- package/data/template/ko.json +316 -4
- package/data/template/pt.json +312 -0
- package/data/template/ru.json +1498 -0
- package/data/template/zh-cn.json +312 -0
- package/lib/ideFeatures/nameCasing.js +4 -4
- package/lib/plugins/data.js +18 -0
- package/lib/plugins/vue-codelens-references.js +1 -1
- package/lib/plugins/vue-document-drop.js +1 -1
- package/lib/plugins/vue-extract-file.js +2 -2
- package/lib/plugins/vue-sfc.d.ts +1 -1
- package/lib/plugins/vue-sfc.js +2 -2
- package/lib/plugins/vue-template.js +5 -5
- package/lib/plugins/vue-toggle-v-bind-codeaction.js +1 -1
- package/lib/plugins/vue-twoslash-queries.js +1 -1
- package/package.json +8 -8
- package/scripts/update-html-data.js +18 -0
package/data/template/zh-cn.json
CHANGED
|
@@ -44,6 +44,18 @@
|
|
|
44
44
|
{
|
|
45
45
|
"name": "it",
|
|
46
46
|
"url": "https://it.vuejs.org/api/built-in-components.html#transition"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "cs",
|
|
50
|
+
"url": "https://cs.vuejs.org/api/built-in-components.html#transition"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "ru",
|
|
54
|
+
"url": "https://ru.vuejs.org/api/built-in-components.html#transition"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "fa",
|
|
58
|
+
"url": "https://fa.vuejs.org/api/built-in-components.html#transition"
|
|
47
59
|
}
|
|
48
60
|
]
|
|
49
61
|
},
|
|
@@ -90,6 +102,18 @@
|
|
|
90
102
|
{
|
|
91
103
|
"name": "it",
|
|
92
104
|
"url": "https://it.vuejs.org/api/built-in-components.html#transitiongroup"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "cs",
|
|
108
|
+
"url": "https://cs.vuejs.org/api/built-in-components.html#transitiongroup"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "ru",
|
|
112
|
+
"url": "https://ru.vuejs.org/api/built-in-components.html#transitiongroup"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "fa",
|
|
116
|
+
"url": "https://fa.vuejs.org/api/built-in-components.html#transitiongroup"
|
|
93
117
|
}
|
|
94
118
|
]
|
|
95
119
|
},
|
|
@@ -136,6 +160,18 @@
|
|
|
136
160
|
{
|
|
137
161
|
"name": "it",
|
|
138
162
|
"url": "https://it.vuejs.org/api/built-in-components.html#keepalive"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "cs",
|
|
166
|
+
"url": "https://cs.vuejs.org/api/built-in-components.html#keepalive"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "ru",
|
|
170
|
+
"url": "https://ru.vuejs.org/api/built-in-components.html#keepalive"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "fa",
|
|
174
|
+
"url": "https://fa.vuejs.org/api/built-in-components.html#keepalive"
|
|
139
175
|
}
|
|
140
176
|
]
|
|
141
177
|
},
|
|
@@ -182,6 +218,18 @@
|
|
|
182
218
|
{
|
|
183
219
|
"name": "it",
|
|
184
220
|
"url": "https://it.vuejs.org/api/built-in-components.html#teleport"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "cs",
|
|
224
|
+
"url": "https://cs.vuejs.org/api/built-in-components.html#teleport"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "ru",
|
|
228
|
+
"url": "https://ru.vuejs.org/api/built-in-components.html#teleport"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "fa",
|
|
232
|
+
"url": "https://fa.vuejs.org/api/built-in-components.html#teleport"
|
|
185
233
|
}
|
|
186
234
|
]
|
|
187
235
|
},
|
|
@@ -228,6 +276,18 @@
|
|
|
228
276
|
{
|
|
229
277
|
"name": "it",
|
|
230
278
|
"url": "https://it.vuejs.org/api/built-in-components.html#suspense"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "cs",
|
|
282
|
+
"url": "https://cs.vuejs.org/api/built-in-components.html#suspense"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "ru",
|
|
286
|
+
"url": "https://ru.vuejs.org/api/built-in-components.html#suspense"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "fa",
|
|
290
|
+
"url": "https://fa.vuejs.org/api/built-in-components.html#suspense"
|
|
231
291
|
}
|
|
232
292
|
]
|
|
233
293
|
},
|
|
@@ -274,6 +334,18 @@
|
|
|
274
334
|
{
|
|
275
335
|
"name": "it",
|
|
276
336
|
"url": "https://it.vuejs.org/api/built-in-special-elements.html#component"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"name": "cs",
|
|
340
|
+
"url": "https://cs.vuejs.org/api/built-in-special-elements.html#component"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "ru",
|
|
344
|
+
"url": "https://ru.vuejs.org/api/built-in-special-elements.html#component"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "fa",
|
|
348
|
+
"url": "https://fa.vuejs.org/api/built-in-special-elements.html#component"
|
|
277
349
|
}
|
|
278
350
|
]
|
|
279
351
|
},
|
|
@@ -320,6 +392,18 @@
|
|
|
320
392
|
{
|
|
321
393
|
"name": "it",
|
|
322
394
|
"url": "https://it.vuejs.org/api/built-in-special-elements.html#slot"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "cs",
|
|
398
|
+
"url": "https://cs.vuejs.org/api/built-in-special-elements.html#slot"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"name": "ru",
|
|
402
|
+
"url": "https://ru.vuejs.org/api/built-in-special-elements.html#slot"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "fa",
|
|
406
|
+
"url": "https://fa.vuejs.org/api/built-in-special-elements.html#slot"
|
|
323
407
|
}
|
|
324
408
|
]
|
|
325
409
|
},
|
|
@@ -366,6 +450,18 @@
|
|
|
366
450
|
{
|
|
367
451
|
"name": "it",
|
|
368
452
|
"url": "https://it.vuejs.org/api/built-in-special-elements.html#template"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"name": "cs",
|
|
456
|
+
"url": "https://cs.vuejs.org/api/built-in-special-elements.html#template"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"name": "ru",
|
|
460
|
+
"url": "https://ru.vuejs.org/api/built-in-special-elements.html#template"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "fa",
|
|
464
|
+
"url": "https://fa.vuejs.org/api/built-in-special-elements.html#template"
|
|
369
465
|
}
|
|
370
466
|
]
|
|
371
467
|
}
|
|
@@ -413,6 +509,18 @@
|
|
|
413
509
|
{
|
|
414
510
|
"name": "it",
|
|
415
511
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-text"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "cs",
|
|
515
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-text"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"name": "ru",
|
|
519
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-text"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"name": "fa",
|
|
523
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-text"
|
|
416
524
|
}
|
|
417
525
|
]
|
|
418
526
|
},
|
|
@@ -458,6 +566,18 @@
|
|
|
458
566
|
{
|
|
459
567
|
"name": "it",
|
|
460
568
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-html"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"name": "cs",
|
|
572
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-html"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"name": "ru",
|
|
576
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-html"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"name": "fa",
|
|
580
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-html"
|
|
461
581
|
}
|
|
462
582
|
]
|
|
463
583
|
},
|
|
@@ -503,6 +623,18 @@
|
|
|
503
623
|
{
|
|
504
624
|
"name": "it",
|
|
505
625
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-show"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"name": "cs",
|
|
629
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-show"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"name": "ru",
|
|
633
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-show"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"name": "fa",
|
|
637
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-show"
|
|
506
638
|
}
|
|
507
639
|
]
|
|
508
640
|
},
|
|
@@ -548,6 +680,18 @@
|
|
|
548
680
|
{
|
|
549
681
|
"name": "it",
|
|
550
682
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-if"
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
"name": "cs",
|
|
686
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-if"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"name": "ru",
|
|
690
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-if"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"name": "fa",
|
|
694
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-if"
|
|
551
695
|
}
|
|
552
696
|
]
|
|
553
697
|
},
|
|
@@ -594,6 +738,18 @@
|
|
|
594
738
|
{
|
|
595
739
|
"name": "it",
|
|
596
740
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-else"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"name": "cs",
|
|
744
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-else"
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"name": "ru",
|
|
748
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-else"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"name": "fa",
|
|
752
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-else"
|
|
597
753
|
}
|
|
598
754
|
]
|
|
599
755
|
},
|
|
@@ -639,6 +795,18 @@
|
|
|
639
795
|
{
|
|
640
796
|
"name": "it",
|
|
641
797
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-else-if"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"name": "cs",
|
|
801
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-else-if"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"name": "ru",
|
|
805
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-else-if"
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"name": "fa",
|
|
809
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-else-if"
|
|
642
810
|
}
|
|
643
811
|
]
|
|
644
812
|
},
|
|
@@ -684,6 +852,18 @@
|
|
|
684
852
|
{
|
|
685
853
|
"name": "it",
|
|
686
854
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-for"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"name": "cs",
|
|
858
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-for"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"name": "ru",
|
|
862
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-for"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"name": "fa",
|
|
866
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-for"
|
|
687
867
|
}
|
|
688
868
|
]
|
|
689
869
|
},
|
|
@@ -729,6 +909,18 @@
|
|
|
729
909
|
{
|
|
730
910
|
"name": "it",
|
|
731
911
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-on"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"name": "cs",
|
|
915
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-on"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"name": "ru",
|
|
919
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-on"
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"name": "fa",
|
|
923
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-on"
|
|
732
924
|
}
|
|
733
925
|
]
|
|
734
926
|
},
|
|
@@ -774,6 +966,18 @@
|
|
|
774
966
|
{
|
|
775
967
|
"name": "it",
|
|
776
968
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-bind"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"name": "cs",
|
|
972
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-bind"
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
"name": "ru",
|
|
976
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-bind"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"name": "fa",
|
|
980
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-bind"
|
|
777
981
|
}
|
|
778
982
|
]
|
|
779
983
|
},
|
|
@@ -819,6 +1023,18 @@
|
|
|
819
1023
|
{
|
|
820
1024
|
"name": "it",
|
|
821
1025
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-model"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"name": "cs",
|
|
1029
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-model"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"name": "ru",
|
|
1033
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-model"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"name": "fa",
|
|
1037
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-model"
|
|
822
1038
|
}
|
|
823
1039
|
]
|
|
824
1040
|
},
|
|
@@ -864,6 +1080,18 @@
|
|
|
864
1080
|
{
|
|
865
1081
|
"name": "it",
|
|
866
1082
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-slot"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"name": "cs",
|
|
1086
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-slot"
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"name": "ru",
|
|
1090
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-slot"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"name": "fa",
|
|
1094
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-slot"
|
|
867
1095
|
}
|
|
868
1096
|
]
|
|
869
1097
|
},
|
|
@@ -909,6 +1137,18 @@
|
|
|
909
1137
|
{
|
|
910
1138
|
"name": "it",
|
|
911
1139
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-pre"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"name": "cs",
|
|
1143
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-pre"
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"name": "ru",
|
|
1147
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-pre"
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"name": "fa",
|
|
1151
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-pre"
|
|
912
1152
|
}
|
|
913
1153
|
]
|
|
914
1154
|
},
|
|
@@ -954,6 +1194,18 @@
|
|
|
954
1194
|
{
|
|
955
1195
|
"name": "it",
|
|
956
1196
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-once"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"name": "cs",
|
|
1200
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-once"
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"name": "ru",
|
|
1204
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-once"
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
"name": "fa",
|
|
1208
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-once"
|
|
957
1209
|
}
|
|
958
1210
|
]
|
|
959
1211
|
},
|
|
@@ -999,6 +1251,18 @@
|
|
|
999
1251
|
{
|
|
1000
1252
|
"name": "it",
|
|
1001
1253
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-memo"
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"name": "cs",
|
|
1257
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-memo"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"name": "ru",
|
|
1261
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-memo"
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"name": "fa",
|
|
1265
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-memo"
|
|
1002
1266
|
}
|
|
1003
1267
|
]
|
|
1004
1268
|
},
|
|
@@ -1044,6 +1308,18 @@
|
|
|
1044
1308
|
{
|
|
1045
1309
|
"name": "it",
|
|
1046
1310
|
"url": "https://it.vuejs.org/api/built-in-directives.html#v-cloak"
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"name": "cs",
|
|
1314
|
+
"url": "https://cs.vuejs.org/api/built-in-directives.html#v-cloak"
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"name": "ru",
|
|
1318
|
+
"url": "https://ru.vuejs.org/api/built-in-directives.html#v-cloak"
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"name": "fa",
|
|
1322
|
+
"url": "https://fa.vuejs.org/api/built-in-directives.html#v-cloak"
|
|
1047
1323
|
}
|
|
1048
1324
|
]
|
|
1049
1325
|
},
|
|
@@ -1089,6 +1365,18 @@
|
|
|
1089
1365
|
{
|
|
1090
1366
|
"name": "it",
|
|
1091
1367
|
"url": "https://it.vuejs.org/api/built-in-special-attributes.html#key"
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
"name": "cs",
|
|
1371
|
+
"url": "https://cs.vuejs.org/api/built-in-special-attributes.html#key"
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"name": "ru",
|
|
1375
|
+
"url": "https://ru.vuejs.org/api/built-in-special-attributes.html#key"
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"name": "fa",
|
|
1379
|
+
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#key"
|
|
1092
1380
|
}
|
|
1093
1381
|
]
|
|
1094
1382
|
},
|
|
@@ -1134,6 +1422,18 @@
|
|
|
1134
1422
|
{
|
|
1135
1423
|
"name": "it",
|
|
1136
1424
|
"url": "https://it.vuejs.org/api/built-in-special-attributes.html#ref"
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"name": "cs",
|
|
1428
|
+
"url": "https://cs.vuejs.org/api/built-in-special-attributes.html#ref"
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
"name": "ru",
|
|
1432
|
+
"url": "https://ru.vuejs.org/api/built-in-special-attributes.html#ref"
|
|
1433
|
+
},
|
|
1434
|
+
{
|
|
1435
|
+
"name": "fa",
|
|
1436
|
+
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#ref"
|
|
1137
1437
|
}
|
|
1138
1438
|
]
|
|
1139
1439
|
},
|
|
@@ -1179,6 +1479,18 @@
|
|
|
1179
1479
|
{
|
|
1180
1480
|
"name": "it",
|
|
1181
1481
|
"url": "https://it.vuejs.org/api/built-in-special-attributes.html#is"
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
"name": "cs",
|
|
1485
|
+
"url": "https://cs.vuejs.org/api/built-in-special-attributes.html#is"
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"name": "ru",
|
|
1489
|
+
"url": "https://ru.vuejs.org/api/built-in-special-attributes.html#is"
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
"name": "fa",
|
|
1493
|
+
"url": "https://fa.vuejs.org/api/built-in-special-attributes.html#is"
|
|
1182
1494
|
}
|
|
1183
1495
|
]
|
|
1184
1496
|
}
|
|
@@ -11,7 +11,7 @@ async function convertTagName(context, uri, casing, tsPluginClient) {
|
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
13
|
const rootCode = sourceFile?.generated?.root;
|
|
14
|
-
if (!(rootCode instanceof language_core_1.
|
|
14
|
+
if (!(rootCode instanceof language_core_1.VueVirtualCode)) {
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
17
|
const desc = rootCode.sfc;
|
|
@@ -48,7 +48,7 @@ async function convertAttrName(context, uri, casing, tsPluginClient) {
|
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
const rootCode = sourceFile?.generated?.root;
|
|
51
|
-
if (!(rootCode instanceof language_core_1.
|
|
51
|
+
if (!(rootCode instanceof language_core_1.VueVirtualCode)) {
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
54
|
const desc = rootCode.sfc;
|
|
@@ -101,7 +101,7 @@ async function getNameCasing(context, uri, tsPluginClient) {
|
|
|
101
101
|
exports.getNameCasing = getNameCasing;
|
|
102
102
|
async function detect(context, uri, tsPluginClient) {
|
|
103
103
|
const rootFile = context.language.scripts.get(uri)?.generated?.root;
|
|
104
|
-
if (!(rootFile instanceof language_core_1.
|
|
104
|
+
if (!(rootFile instanceof language_core_1.VueVirtualCode)) {
|
|
105
105
|
return {
|
|
106
106
|
tag: [],
|
|
107
107
|
attr: [],
|
|
@@ -169,7 +169,7 @@ const map = new WeakMap();
|
|
|
169
169
|
function getTemplateTagsAndAttrs(sourceFile) {
|
|
170
170
|
if (!map.has(sourceFile)) {
|
|
171
171
|
const getter = (0, computeds_1.computed)(() => {
|
|
172
|
-
if (!(sourceFile instanceof vue.
|
|
172
|
+
if (!(sourceFile instanceof vue.VueVirtualCode)) {
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
175
|
const ast = sourceFile.sfc.template?.ast;
|
package/lib/plugins/data.js
CHANGED
|
@@ -22,6 +22,12 @@ function loadTemplateData(lang) {
|
|
|
22
22
|
else if (lang === 'it') {
|
|
23
23
|
data = require('../../data/template/it.json');
|
|
24
24
|
}
|
|
25
|
+
else if (lang === 'cs') {
|
|
26
|
+
data = require('../../data/template/cs.json');
|
|
27
|
+
}
|
|
28
|
+
else if (lang === 'ru') {
|
|
29
|
+
data = require('../../data/template/ru.json');
|
|
30
|
+
}
|
|
25
31
|
else {
|
|
26
32
|
data = require('../../data/template/en.json');
|
|
27
33
|
}
|
|
@@ -65,6 +71,12 @@ function loadLanguageBlocks(lang) {
|
|
|
65
71
|
else if (lang === 'it') {
|
|
66
72
|
return require('../../data/language-blocks/it.json');
|
|
67
73
|
}
|
|
74
|
+
else if (lang === 'cs') {
|
|
75
|
+
return require('../../data/language-blocks/cs.json');
|
|
76
|
+
}
|
|
77
|
+
else if (lang === 'ru') {
|
|
78
|
+
return require('../../data/language-blocks/ru.json');
|
|
79
|
+
}
|
|
68
80
|
return require('../../data/language-blocks/en.json');
|
|
69
81
|
}
|
|
70
82
|
exports.loadLanguageBlocks = loadLanguageBlocks;
|
|
@@ -88,6 +100,12 @@ function loadModelModifiersData(lang) {
|
|
|
88
100
|
else if (lang === 'it') {
|
|
89
101
|
return require('../../data/model-modifiers/it.json');
|
|
90
102
|
}
|
|
103
|
+
else if (lang === 'cs') {
|
|
104
|
+
return require('../../data/model-modifiers/cs.json');
|
|
105
|
+
}
|
|
106
|
+
else if (lang === 'ru') {
|
|
107
|
+
return require('../../data/model-modifiers/ru.json');
|
|
108
|
+
}
|
|
91
109
|
return require('../../data/model-modifiers/en.json');
|
|
92
110
|
}
|
|
93
111
|
exports.loadModelModifiersData = loadModelModifiersData;
|
|
@@ -30,7 +30,7 @@ function create() {
|
|
|
30
30
|
const decoded = context.decodeEmbeddedDocumentUri(uri);
|
|
31
31
|
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
|
32
32
|
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
|
33
|
-
if (!virtualCode || !(sourceScript?.generated?.root instanceof language_core_1.
|
|
33
|
+
if (!virtualCode || !(sourceScript?.generated?.root instanceof language_core_1.VueVirtualCode) || !sourceScript) {
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
return callback(virtualCode, sourceScript);
|
|
@@ -22,7 +22,7 @@ function create(ts, getTsPluginClient) {
|
|
|
22
22
|
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
|
23
23
|
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
|
24
24
|
const vueVirtualCode = sourceScript?.generated?.root;
|
|
25
|
-
if (!sourceScript || !virtualCode || !(vueVirtualCode instanceof language_core_1.
|
|
25
|
+
if (!sourceScript || !virtualCode || !(vueVirtualCode instanceof language_core_1.VueVirtualCode)) {
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
let importUri;
|
|
@@ -18,7 +18,7 @@ function create(ts, getTsPluginClient) {
|
|
|
18
18
|
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
|
19
19
|
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
|
20
20
|
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
|
21
|
-
if (!(sourceScript?.generated?.root instanceof language_core_1.
|
|
21
|
+
if (!(sourceScript?.generated?.root instanceof language_core_1.VueVirtualCode) || virtualCode?.id !== 'template') {
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
const { sfc } = sourceScript.generated.root;
|
|
@@ -48,7 +48,7 @@ function create(ts, getTsPluginClient) {
|
|
|
48
48
|
const decoded = context.decodeEmbeddedDocumentUri(uri);
|
|
49
49
|
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
|
50
50
|
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
|
51
|
-
if (!(sourceScript?.generated?.root instanceof language_core_1.
|
|
51
|
+
if (!(sourceScript?.generated?.root instanceof language_core_1.VueVirtualCode) || virtualCode?.id !== 'template') {
|
|
52
52
|
return codeAction;
|
|
53
53
|
}
|
|
54
54
|
const document = context.documents.get(uri, virtualCode.languageId, virtualCode.snapshot);
|
package/lib/plugins/vue-sfc.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import type { LanguageServicePlugin } from '@volar/language-service';
|
|
|
2
2
|
import * as vue from '@vue/language-core';
|
|
3
3
|
import type { TextDocument } from 'vscode-languageserver-textdocument';
|
|
4
4
|
export interface Provide {
|
|
5
|
-
'vue/vueFile': (document: TextDocument) => vue.
|
|
5
|
+
'vue/vueFile': (document: TextDocument) => vue.VueVirtualCode | undefined;
|
|
6
6
|
}
|
|
7
7
|
export declare function create(): LanguageServicePlugin;
|
package/lib/plugins/vue-sfc.js
CHANGED
|
@@ -47,7 +47,7 @@ function create() {
|
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
async resolveEmbeddedCodeFormattingOptions(sourceScript, virtualCode, options) {
|
|
50
|
-
if (sourceScript.generated?.root instanceof vue.
|
|
50
|
+
if (sourceScript.generated?.root instanceof vue.VueVirtualCode) {
|
|
51
51
|
if (virtualCode.id === 'scriptFormat' || virtualCode.id === 'scriptSetupFormat') {
|
|
52
52
|
if (await context.env.getConfiguration?.('vue.format.script.initialIndent') ?? false) {
|
|
53
53
|
options.initialIndentLevel++;
|
|
@@ -156,7 +156,7 @@ function create() {
|
|
|
156
156
|
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
|
157
157
|
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
|
158
158
|
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
|
159
|
-
if (virtualCode instanceof vue.
|
|
159
|
+
if (virtualCode instanceof vue.VueVirtualCode) {
|
|
160
160
|
return callback(virtualCode);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
@@ -91,7 +91,7 @@ function create(mode, ts, getVueOptions, getTsPluginClient) {
|
|
|
91
91
|
let currentVersion;
|
|
92
92
|
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
|
93
93
|
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
|
94
|
-
if (sourceScript?.generated?.root instanceof language_core_1.
|
|
94
|
+
if (sourceScript?.generated?.root instanceof language_core_1.VueVirtualCode) {
|
|
95
95
|
sync = (await provideHtmlData(sourceScript.id, sourceScript.generated.root)).sync;
|
|
96
96
|
currentVersion = await sync();
|
|
97
97
|
}
|
|
@@ -102,7 +102,7 @@ function create(mode, ts, getVueOptions, getTsPluginClient) {
|
|
|
102
102
|
if (!htmlComplete) {
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
|
-
if (sourceScript?.generated?.root instanceof language_core_1.
|
|
105
|
+
if (sourceScript?.generated?.root instanceof language_core_1.VueVirtualCode) {
|
|
106
106
|
await afterHtmlCompletion(htmlComplete, context.documents.get(sourceScript.id, sourceScript.languageId, sourceScript.snapshot), sourceScript.generated.root);
|
|
107
107
|
}
|
|
108
108
|
return htmlComplete;
|
|
@@ -125,7 +125,7 @@ function create(mode, ts, getVueOptions, getTsPluginClient) {
|
|
|
125
125
|
for (const map of context.documents.getMaps(virtualCode)) {
|
|
126
126
|
const code = context.language.scripts.get(map.sourceDocument.uri)?.generated?.root;
|
|
127
127
|
const scanner = getScanner(baseServiceInstance, document);
|
|
128
|
-
if (code instanceof language_core_1.
|
|
128
|
+
if (code instanceof language_core_1.VueVirtualCode && scanner) {
|
|
129
129
|
// visualize missing required props
|
|
130
130
|
const casing = await (0, nameCasing_1.getNameCasing)(context, map.sourceDocument.uri, tsPluginClient);
|
|
131
131
|
const components = await tsPluginClient?.getComponentNames(code.fileName) ?? [];
|
|
@@ -234,7 +234,7 @@ function create(mode, ts, getVueOptions, getTsPluginClient) {
|
|
|
234
234
|
}
|
|
235
235
|
for (const map of context.documents.getMaps(virtualCode)) {
|
|
236
236
|
const code = context.language.scripts.get(map.sourceDocument.uri)?.generated?.root;
|
|
237
|
-
if (!(code instanceof language_core_1.
|
|
237
|
+
if (!(code instanceof language_core_1.VueVirtualCode)) {
|
|
238
238
|
continue;
|
|
239
239
|
}
|
|
240
240
|
const templateErrors = [];
|
|
@@ -281,7 +281,7 @@ function create(mode, ts, getVueOptions, getTsPluginClient) {
|
|
|
281
281
|
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
|
282
282
|
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
|
283
283
|
if (!sourceScript
|
|
284
|
-
|| !(sourceScript.generated?.root instanceof language_core_1.
|
|
284
|
+
|| !(sourceScript.generated?.root instanceof language_core_1.VueVirtualCode)
|
|
285
285
|
|| !sourceScript.generated.root.sfc.template) {
|
|
286
286
|
return [];
|
|
287
287
|
}
|
|
@@ -13,7 +13,7 @@ function create(ts) {
|
|
|
13
13
|
const decoded = context.decodeEmbeddedDocumentUri(document.uri);
|
|
14
14
|
const sourceScript = decoded && context.language.scripts.get(decoded[0]);
|
|
15
15
|
const virtualCode = decoded && sourceScript?.generated?.embeddedCodes.get(decoded[1]);
|
|
16
|
-
if (!(virtualCode instanceof language_core_1.
|
|
16
|
+
if (!(virtualCode instanceof language_core_1.VueVirtualCode)) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
const { template } = virtualCode.sfc;
|