@volar/language-server 1.0.4 → 1.0.6
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/server.js +3 -3
- package/out/types.d.ts +1 -0
- package/package.json +7 -7
package/out/server.js
CHANGED
|
@@ -99,11 +99,11 @@ function createCommonLanguageServer(connection, runtimeEnv, _plugins) {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
function createLanguageServiceHost() {
|
|
102
|
-
var _a, _b;
|
|
102
|
+
var _a, _b, _c;
|
|
103
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
104
104
|
const ts = runtimeEnv.loadTypescript(options.typescript.tsdk);
|
|
105
105
|
fsHost = runtimeEnv.createFileSystemHost(ts, params.capabilities);
|
|
106
|
-
const tsLocalized = params.locale ? runtimeEnv.loadTypescriptLocalized(options.typescript.tsdk, params.locale) : undefined;
|
|
106
|
+
const tsLocalized = params.locale ? runtimeEnv.loadTypescriptLocalized(options.typescript.tsdk, (_a = options.__language) !== null && _a !== void 0 ? _a : params.locale) : undefined;
|
|
107
107
|
const cancelTokenHost = (0, cancellationPipe_1.createCancellactionTokenHost)(options.cancellationPipeName);
|
|
108
108
|
const _projects = (0, workspaces_1.createWorkspaces)(runtimeEnv, plugins, fsHost, configHost, ts, tsLocalized, params.capabilities, options, documents, connection, cancelTokenHost);
|
|
109
109
|
projects = _projects;
|
|
@@ -113,7 +113,7 @@ function createCommonLanguageServer(connection, runtimeEnv, _plugins) {
|
|
|
113
113
|
(yield Promise.resolve().then(() => require('./features/customFeatures'))).register(connection, projects);
|
|
114
114
|
(yield Promise.resolve().then(() => require('./features/languageFeatures'))).register(connection, projects, params, cancelTokenHost);
|
|
115
115
|
for (const plugin of plugins) {
|
|
116
|
-
(
|
|
116
|
+
(_c = (_b = plugin.semanticService) === null || _b === void 0 ? void 0 : _b.onInitialize) === null || _c === void 0 ? void 0 : _c.call(_b, connection, getLanguageService);
|
|
117
117
|
}
|
|
118
118
|
function getLanguageService(uri) {
|
|
119
119
|
var _a;
|
package/out/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"directory": "packages/language-server"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@volar/language-core": "1.0.
|
|
21
|
-
"@volar/language-service": "1.0.
|
|
22
|
-
"@volar/shared": "1.0.
|
|
20
|
+
"@volar/language-core": "1.0.6",
|
|
21
|
+
"@volar/language-service": "1.0.6",
|
|
22
|
+
"@volar/shared": "1.0.6",
|
|
23
23
|
"request-light": "^0.5.8",
|
|
24
24
|
"typesafe-path": "^0.2.2",
|
|
25
|
-
"vscode-html-languageservice": "^5.0.
|
|
25
|
+
"vscode-html-languageservice": "^5.0.2",
|
|
26
26
|
"vscode-languageserver": "^8.0.2",
|
|
27
27
|
"vscode-languageserver-protocol": "^3.17.2",
|
|
28
28
|
"vscode-languageserver-textdocument": "^1.0.7",
|
|
29
|
-
"vscode-uri": "^3.0.
|
|
29
|
+
"vscode-uri": "^3.0.6"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "21df3435df506fede5c1b078dc652d0782923af3"
|
|
32
32
|
}
|