@astrojs/language-server 2.9.0 → 2.10.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/dist/core/svelte.js +1 -15
- package/dist/core/utils.js +1 -15
- package/dist/core/vue.js +1 -15
- package/package.json +13 -13
package/dist/core/svelte.js
CHANGED
|
@@ -54,21 +54,7 @@ class SvelteVirtualCode {
|
|
|
54
54
|
this.onSnapshotUpdated();
|
|
55
55
|
}
|
|
56
56
|
onSnapshotUpdated() {
|
|
57
|
-
this.mappings = [
|
|
58
|
-
{
|
|
59
|
-
sourceOffsets: [0],
|
|
60
|
-
generatedOffsets: [0],
|
|
61
|
-
lengths: [this.snapshot.getLength()],
|
|
62
|
-
data: {
|
|
63
|
-
verification: true,
|
|
64
|
-
completion: true,
|
|
65
|
-
semantic: true,
|
|
66
|
-
navigation: true,
|
|
67
|
-
structure: true,
|
|
68
|
-
format: true,
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
];
|
|
57
|
+
this.mappings = [];
|
|
72
58
|
this.embeddedCodes = [];
|
|
73
59
|
this.embeddedCodes.push((0, utils_js_1.framework2tsx)(this.fileName, this.snapshot.getText(0, this.snapshot.getLength()), 'svelte'));
|
|
74
60
|
}
|
package/dist/core/utils.js
CHANGED
|
@@ -21,21 +21,7 @@ function framework2tsx(filePath, sourceCode, framework) {
|
|
|
21
21
|
getLength: () => content.length,
|
|
22
22
|
getChangeRange: () => undefined,
|
|
23
23
|
},
|
|
24
|
-
mappings: [
|
|
25
|
-
{
|
|
26
|
-
sourceOffsets: [0],
|
|
27
|
-
generatedOffsets: [0],
|
|
28
|
-
lengths: [content.length],
|
|
29
|
-
data: {
|
|
30
|
-
verification: true,
|
|
31
|
-
completion: true,
|
|
32
|
-
semantic: true,
|
|
33
|
-
navigation: true,
|
|
34
|
-
structure: true,
|
|
35
|
-
format: true,
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
],
|
|
24
|
+
mappings: [],
|
|
39
25
|
embeddedCodes: [],
|
|
40
26
|
};
|
|
41
27
|
}
|
package/dist/core/vue.js
CHANGED
|
@@ -54,21 +54,7 @@ class VueVirtualCode {
|
|
|
54
54
|
this.onSnapshotUpdated();
|
|
55
55
|
}
|
|
56
56
|
onSnapshotUpdated() {
|
|
57
|
-
this.mappings = [
|
|
58
|
-
{
|
|
59
|
-
sourceOffsets: [0],
|
|
60
|
-
generatedOffsets: [0],
|
|
61
|
-
lengths: [this.snapshot.getLength()],
|
|
62
|
-
data: {
|
|
63
|
-
verification: true,
|
|
64
|
-
completion: true,
|
|
65
|
-
semantic: true,
|
|
66
|
-
navigation: true,
|
|
67
|
-
structure: true,
|
|
68
|
-
format: true,
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
];
|
|
57
|
+
this.mappings = [];
|
|
72
58
|
this.embeddedCodes = [];
|
|
73
59
|
this.embeddedCodes.push((0, utils_js_1.framework2tsx)(this.fileName, this.snapshot.getText(0, this.snapshot.getLength()), 'vue'));
|
|
74
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/language-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"author": "withastro",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@astrojs/compiler": "^2.7.0",
|
|
24
24
|
"@jridgewell/sourcemap-codec": "^1.4.15",
|
|
25
|
-
"@volar/kit": "~2.2.
|
|
26
|
-
"@volar/language-core": "~2.2.
|
|
27
|
-
"@volar/language-server": "~2.2.
|
|
28
|
-
"@volar/language-service": "~2.2.
|
|
29
|
-
"@volar/typescript": "~2.2.
|
|
25
|
+
"@volar/kit": "~2.2.3",
|
|
26
|
+
"@volar/language-core": "~2.2.3",
|
|
27
|
+
"@volar/language-server": "~2.2.3",
|
|
28
|
+
"@volar/language-service": "~2.2.3",
|
|
29
|
+
"@volar/typescript": "~2.2.3",
|
|
30
30
|
"fast-glob": "^3.2.12",
|
|
31
|
-
"volar-service-css": "0.0.
|
|
32
|
-
"volar-service-emmet": "0.0.
|
|
33
|
-
"volar-service-html": "0.0.
|
|
34
|
-
"volar-service-prettier": "0.0.
|
|
35
|
-
"volar-service-typescript": "0.0.
|
|
36
|
-
"volar-service-typescript-twoslash-queries": "0.0.
|
|
31
|
+
"volar-service-css": "0.0.45",
|
|
32
|
+
"volar-service-emmet": "0.0.45",
|
|
33
|
+
"volar-service-html": "0.0.45",
|
|
34
|
+
"volar-service-prettier": "0.0.45",
|
|
35
|
+
"volar-service-typescript": "0.0.45",
|
|
36
|
+
"volar-service-typescript-twoslash-queries": "0.0.45",
|
|
37
37
|
"vscode-html-languageservice": "^5.2.0",
|
|
38
38
|
"vscode-uri": "^3.0.8"
|
|
39
39
|
},
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@types/chai": "^4.3.5",
|
|
45
45
|
"@types/mocha": "^10.0.1",
|
|
46
46
|
"@types/node": "^18.17.8",
|
|
47
|
-
"@volar/test-utils": "~2.2.
|
|
47
|
+
"@volar/test-utils": "~2.2.3",
|
|
48
48
|
"astro": "^4.3.5",
|
|
49
49
|
"chai": "^4.3.7",
|
|
50
50
|
"mocha": "^10.2.0",
|