@vue/language-service 3.2.1 → 3.2.2

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.
@@ -234,6 +234,9 @@ function create(ts, languageId, tsserver) {
234
234
  if (!hint) {
235
235
  htmlCompletion.isIncomplete = true;
236
236
  }
237
+ if (htmlCompletion.items[0]?.kind === 12) {
238
+ addDirectiveModifiers(htmlCompletion, htmlCompletion.items[0], document);
239
+ }
237
240
  await resolveAutoImportPlaceholder(htmlCompletion, info);
238
241
  resolveComponentItemKinds(htmlCompletion);
239
242
  return htmlCompletion;
@@ -285,7 +288,6 @@ function create(ts, languageId, tsserver) {
285
288
  }
286
289
  break;
287
290
  case 12:
288
- addDirectiveModifiers(htmlCompletion, item, document);
289
291
  if (typeof item.documentation === 'object' && item.documentation.value.includes('*@deprecated*')) {
290
292
  item.tags = [1];
291
293
  }
@@ -627,6 +629,7 @@ function create(ts, languageId, tsserver) {
627
629
  const name = attrNameCasing === 1 /* AttrNameCasing.Camel */ ? prop.name : (0, language_core_1.hyphenateAttr)(prop.name);
628
630
  return name === labelName;
629
631
  });
632
+ const isBoolean = propMeta2?.type === 'boolean' || propMeta2?.type.startsWith('boolean ');
630
633
  if (addPlainAttrs) {
631
634
  attributes.push({
632
635
  name: labelName,
@@ -637,12 +640,14 @@ function create(ts, languageId, tsserver) {
637
640
  attributes.push({
638
641
  name: V_BIND_SHORTHAND + labelName,
639
642
  description: propMeta2 && createDescription(propMeta2),
643
+ valueSet: isBoolean ? 'v' : undefined,
640
644
  });
641
645
  }
642
646
  if (addVBinds) {
643
647
  attributes.push({
644
648
  name: DIRECTIVE_V_BIND + labelName,
645
649
  description: propMeta2 && createDescription(propMeta2),
650
+ valueSet: isBoolean ? 'v' : undefined,
646
651
  });
647
652
  }
648
653
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/language-service",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
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.27",
21
- "@vue/language-core": "3.2.1",
21
+ "@vue/language-core": "3.2.2",
22
22
  "@vue/shared": "^3.5.0",
23
23
  "path-browserify": "^1.0.1",
24
24
  "volar-service-css": "0.0.68",
@@ -37,8 +37,8 @@
37
37
  "@volar/kit": "2.4.27",
38
38
  "@volar/typescript": "2.4.27",
39
39
  "@vue/compiler-dom": "^3.5.0",
40
- "@vue/typescript-plugin": "3.2.1",
40
+ "@vue/typescript-plugin": "3.2.2",
41
41
  "vscode-css-languageservice": "^6.3.1"
42
42
  },
43
- "gitHead": "fad5a89205579e6a0902d7ee5bae3db7b510e2f4"
43
+ "gitHead": "17394f4e80c2267e8b7159468ab40c948ea37d65"
44
44
  }