@vue/language-service 3.1.8 → 3.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/language-service",
3
- "version": "3.1.8",
3
+ "version": "3.2.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "data",
@@ -17,8 +17,8 @@
17
17
  "update-html-data": "node ./scripts/update-html-data.js"
18
18
  },
19
19
  "dependencies": {
20
- "@volar/language-service": "2.4.26",
21
- "@vue/language-core": "3.1.8",
20
+ "@volar/language-service": "2.4.27",
21
+ "@vue/language-core": "3.2.0",
22
22
  "@vue/shared": "^3.5.0",
23
23
  "path-browserify": "^1.0.1",
24
24
  "volar-service-css": "0.0.68",
@@ -34,11 +34,11 @@
34
34
  "devDependencies": {
35
35
  "@types/node": "^22.10.4",
36
36
  "@types/path-browserify": "^1.0.1",
37
- "@volar/kit": "2.4.26",
38
- "@volar/typescript": "2.4.26",
37
+ "@volar/kit": "2.4.27",
38
+ "@volar/typescript": "2.4.27",
39
39
  "@vue/compiler-dom": "^3.5.0",
40
- "@vue/typescript-plugin": "3.1.8",
40
+ "@vue/typescript-plugin": "3.2.0",
41
41
  "vscode-css-languageservice": "^6.3.1"
42
42
  },
43
- "gitHead": "0c9b66d0332698a1764fa56b64d47a6a30e81b47"
43
+ "gitHead": "3138110d767d3d6110899bc46518b53c4b456271"
44
44
  }
@@ -1,2 +0,0 @@
1
- import type { LanguageServicePlugin } from '@volar/language-service';
2
- export declare function create(): LanguageServicePlugin;
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.create = create;
4
- const utils_1 = require("../utils");
5
- function create() {
6
- return {
7
- name: 'vue-global-types-error',
8
- capabilities: {
9
- diagnosticProvider: {
10
- interFileDependencies: false,
11
- workspaceDiagnostics: false,
12
- },
13
- },
14
- create(context) {
15
- return {
16
- provideDiagnostics(document) {
17
- const info = (0, utils_1.resolveEmbeddedCode)(context, document.uri);
18
- if (info?.code.id !== 'root_tags') {
19
- return;
20
- }
21
- if (info.script.id.scheme !== 'file') {
22
- return;
23
- }
24
- const { vueCompilerOptions } = info.root;
25
- const globalTypesPath = vueCompilerOptions.globalTypesPath(info.root.fileName);
26
- if (globalTypesPath) {
27
- return;
28
- }
29
- return [{
30
- range: {
31
- start: document.positionAt(0),
32
- end: document.positionAt(0),
33
- },
34
- severity: 2,
35
- code: 404,
36
- source: 'vue',
37
- message: `
38
- Failed to write the global types file. Make sure that:
39
-
40
- 1. "node_modules" directory exists.
41
- 2. "${vueCompilerOptions.lib}" is installed as a direct dependency.
42
-
43
- Alternatively, you can manually set "vueCompilerOptions.globalTypesPath" in your "tsconfig.json" or "jsconfig.json".
44
-
45
- If all dependencies are installed, try running the "vue.action.restartServer" command to restart Vue and TS servers.
46
- `.trim(),
47
- }];
48
- },
49
- };
50
- },
51
- };
52
- }
53
- //# sourceMappingURL=vue-global-types-error.js.map