@volar/language-server 1.0.6 → 1.0.7

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 CHANGED
@@ -99,11 +99,11 @@ function createCommonLanguageServer(connection, runtimeEnv, _plugins) {
99
99
  });
100
100
  }
101
101
  function createLanguageServiceHost() {
102
- var _a, _b, _c;
102
+ var _a, _b;
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, (_a = options.__language) !== null && _a !== void 0 ? _a : params.locale) : undefined;
106
+ const tsLocalized = params.locale ? runtimeEnv.loadTypescriptLocalized(options.typescript.tsdk, 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
- (_c = (_b = plugin.semanticService) === null || _b === void 0 ? void 0 : _b.onInitialize) === null || _c === void 0 ? void 0 : _c.call(_b, connection, getLanguageService);
116
+ (_b = (_a = plugin.semanticService) === null || _a === void 0 ? void 0 : _a.onInitialize) === null || _b === void 0 ? void 0 : _b.call(_a, connection, getLanguageService);
117
117
  }
118
118
  function getLanguageService(uri) {
119
119
  var _a;
package/out/types.d.ts CHANGED
@@ -60,5 +60,4 @@ export interface LanguageServerInitializationOptions {
60
60
  * https://github.com/Microsoft/TypeScript/wiki/Standalone-Server-%28tsserver%29#cancellation
61
61
  */
62
62
  cancellationPipeName?: string;
63
- __language?: string;
64
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/language-server",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -17,9 +17,9 @@
17
17
  "directory": "packages/language-server"
18
18
  },
19
19
  "dependencies": {
20
- "@volar/language-core": "1.0.6",
21
- "@volar/language-service": "1.0.6",
22
- "@volar/shared": "1.0.6",
20
+ "@volar/language-core": "1.0.7",
21
+ "@volar/language-service": "1.0.7",
22
+ "@volar/shared": "1.0.7",
23
23
  "request-light": "^0.5.8",
24
24
  "typesafe-path": "^0.2.2",
25
25
  "vscode-html-languageservice": "^5.0.2",
@@ -28,5 +28,5 @@
28
28
  "vscode-languageserver-textdocument": "^1.0.7",
29
29
  "vscode-uri": "^3.0.6"
30
30
  },
31
- "gitHead": "21df3435df506fede5c1b078dc652d0782923af3"
31
+ "gitHead": "96cc1acd9c16ad9cb46638a54f088199f7dddfad"
32
32
  }