@astrojs/language-server 2.5.0 → 2.5.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.
- package/dist/core/parseJS.js +8 -1
- package/dist/importPackage.js +1 -1
- package/package.json +17 -17
package/dist/core/parseJS.js
CHANGED
|
@@ -189,7 +189,14 @@ function mergeJSContexts(fileName, javascriptContexts) {
|
|
|
189
189
|
getLength: () => text.length,
|
|
190
190
|
getChangeRange: () => undefined,
|
|
191
191
|
},
|
|
192
|
-
capabilities:
|
|
192
|
+
capabilities: {
|
|
193
|
+
codeAction: true,
|
|
194
|
+
diagnostic: true,
|
|
195
|
+
documentFormatting: false,
|
|
196
|
+
documentSymbol: true,
|
|
197
|
+
foldingRange: true,
|
|
198
|
+
inlayHint: true,
|
|
199
|
+
},
|
|
193
200
|
embeddedFiles: [],
|
|
194
201
|
kind: language_core_1.FileKind.TypeScriptHostFile,
|
|
195
202
|
mappings,
|
package/dist/importPackage.js
CHANGED
|
@@ -33,7 +33,7 @@ function importEditorIntegration(packageName, fromPath) {
|
|
|
33
33
|
return require(main);
|
|
34
34
|
}
|
|
35
35
|
catch (e) {
|
|
36
|
-
console.error(`Couldn't load editor module from ${pkgPath}. Make sure you're using at least version v0.2.1 of the corresponding integration`);
|
|
36
|
+
console.error(`Couldn't load editor module from ${pkgPath}. Make sure you're using at least version v0.2.1 of the corresponding integration. Reason: ${e}`);
|
|
37
37
|
return undefined;
|
|
38
38
|
}
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/language-server",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"author": "withastro",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,22 +20,22 @@
|
|
|
20
20
|
"astro-ls": "./bin/nodeServer.js"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@astrojs/compiler": "^2.2.
|
|
23
|
+
"@astrojs/compiler": "^2.2.2",
|
|
24
24
|
"@jridgewell/sourcemap-codec": "^1.4.15",
|
|
25
|
-
"@volar/kit": "~1.10.
|
|
26
|
-
"@volar/language-core": "~1.10.
|
|
27
|
-
"@volar/language-server": "~1.10.
|
|
28
|
-
"@volar/language-service": "~1.10.
|
|
29
|
-
"@volar/source-map": "~1.10.
|
|
30
|
-
"@volar/typescript": "~1.10.
|
|
25
|
+
"@volar/kit": "~1.10.9",
|
|
26
|
+
"@volar/language-core": "~1.10.9",
|
|
27
|
+
"@volar/language-server": "~1.10.9",
|
|
28
|
+
"@volar/language-service": "~1.10.9",
|
|
29
|
+
"@volar/source-map": "~1.10.9",
|
|
30
|
+
"@volar/typescript": "~1.10.9",
|
|
31
31
|
"fast-glob": "^3.2.12",
|
|
32
32
|
"muggle-string": "^0.3.1",
|
|
33
|
-
"volar-service-css": "0.0.
|
|
34
|
-
"volar-service-emmet": "0.0.
|
|
35
|
-
"volar-service-html": "0.0.
|
|
36
|
-
"volar-service-prettier": "0.0.
|
|
37
|
-
"volar-service-typescript": "0.0.
|
|
38
|
-
"volar-service-typescript-twoslash-queries": "0.0.
|
|
33
|
+
"volar-service-css": "0.0.16",
|
|
34
|
+
"volar-service-emmet": "0.0.16",
|
|
35
|
+
"volar-service-html": "0.0.16",
|
|
36
|
+
"volar-service-prettier": "0.0.16",
|
|
37
|
+
"volar-service-typescript": "0.0.16",
|
|
38
|
+
"volar-service-typescript-twoslash-queries": "0.0.16",
|
|
39
39
|
"vscode-html-languageservice": "^5.1.0",
|
|
40
40
|
"vscode-uri": "^3.0.8"
|
|
41
41
|
},
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"@astrojs/vue": "^3.0.1",
|
|
45
45
|
"@types/chai": "^4.3.5",
|
|
46
46
|
"@types/mocha": "^10.0.1",
|
|
47
|
-
"@types/node": "^
|
|
47
|
+
"@types/node": "^18.17.8",
|
|
48
48
|
"astro": "^3.3.0",
|
|
49
49
|
"chai": "^4.3.7",
|
|
50
50
|
"mocha": "^10.2.0",
|
|
51
51
|
"tsx": "^3.12.7",
|
|
52
|
-
"typescript": "~5.1.3",
|
|
53
52
|
"vscode-languageserver-protocol": "^3.17.5",
|
|
54
|
-
"vscode-languageserver-textdocument": "^1.0.11"
|
|
53
|
+
"vscode-languageserver-textdocument": "^1.0.11",
|
|
54
|
+
"typescript": "^5.2.2"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"prettier": "^3.0.0",
|