@volar/language-server 1.10.8 → 1.10.9
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/out/browser/index.js +6 -2
- package/out/common/documents.d.ts +1 -0
- package/out/node/index.js +6 -2
- package/out/types.d.ts +1 -0
- package/package.json +6 -6
package/out/browser/index.js
CHANGED
|
@@ -41,7 +41,9 @@ function startLanguageServer(connection, ...plugins) {
|
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
43
|
async loadTypeScript(options) {
|
|
44
|
-
const tsdkUri = options.typescript
|
|
44
|
+
const tsdkUri = options.typescript && 'tsdkUrl' in options.typescript
|
|
45
|
+
? options.typescript.tsdkUrl
|
|
46
|
+
: undefined;
|
|
45
47
|
if (!tsdkUri) {
|
|
46
48
|
return;
|
|
47
49
|
}
|
|
@@ -53,7 +55,9 @@ function startLanguageServer(connection, ...plugins) {
|
|
|
53
55
|
return ts;
|
|
54
56
|
},
|
|
55
57
|
async loadTypeScriptLocalized(options, locale) {
|
|
56
|
-
const tsdkUri = options.typescript
|
|
58
|
+
const tsdkUri = options.typescript && 'tsdkUrl' in options.typescript
|
|
59
|
+
? options.typescript.tsdkUrl
|
|
60
|
+
: undefined;
|
|
57
61
|
if (!tsdkUri) {
|
|
58
62
|
return;
|
|
59
63
|
}
|
package/out/node/index.js
CHANGED
|
@@ -106,7 +106,9 @@ function startLanguageServer(connection, ...plugins) {
|
|
|
106
106
|
},
|
|
107
107
|
},
|
|
108
108
|
loadTypeScript(options) {
|
|
109
|
-
const tsdk = options.typescript
|
|
109
|
+
const tsdk = options.typescript && 'tsdk' in options.typescript
|
|
110
|
+
? options.typescript.tsdk
|
|
111
|
+
: undefined;
|
|
110
112
|
if (!tsdk) {
|
|
111
113
|
return;
|
|
112
114
|
}
|
|
@@ -126,7 +128,9 @@ function startLanguageServer(connection, ...plugins) {
|
|
|
126
128
|
throw new Error(`Can't find typescript.js or tsserverlibrary.js in ${tsdk}`);
|
|
127
129
|
},
|
|
128
130
|
async loadTypeScriptLocalized(options, locale) {
|
|
129
|
-
const tsdk = options.typescript
|
|
131
|
+
const tsdk = options.typescript && 'tsdk' in options.typescript
|
|
132
|
+
? options.typescript.tsdk
|
|
133
|
+
: undefined;
|
|
130
134
|
if (!tsdk) {
|
|
131
135
|
return;
|
|
132
136
|
}
|
package/out/types.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export interface InitializationOptions {
|
|
|
44
44
|
* Absolute path to node_modules/typescript/lib, available for node
|
|
45
45
|
*/
|
|
46
46
|
tsdk: string;
|
|
47
|
+
} | {
|
|
47
48
|
/**
|
|
48
49
|
* URI to node_modules/typescript/lib, available for web
|
|
49
50
|
* @example "https://cdn.jsdelivr.net/npm/typescript"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-server",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.9",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"directory": "packages/language-server"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@volar/language-core": "1.10.
|
|
19
|
-
"@volar/language-service": "1.10.
|
|
20
|
-
"@volar/typescript": "1.10.
|
|
18
|
+
"@volar/language-core": "1.10.9",
|
|
19
|
+
"@volar/language-service": "1.10.9",
|
|
20
|
+
"@volar/typescript": "1.10.9",
|
|
21
21
|
"@vscode/l10n": "^0.0.16",
|
|
22
22
|
"request-light": "^0.7.0",
|
|
23
23
|
"typesafe-path": "^0.2.2",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"vscode-uri": "^3.0.8"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@volar/source-map": "1.10.
|
|
30
|
+
"@volar/source-map": "1.10.9"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "dbd802ab416c78f7b2425d10d00075fa3fbcd6c1"
|
|
33
33
|
}
|