@vue/language-server 2.1.4 → 2.1.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/lib/initialize.js CHANGED
@@ -11,11 +11,11 @@ function initialize(server, params, ts, tsLocalized) {
11
11
  let compilerOptions;
12
12
  let vueCompilerOptions;
13
13
  if (configFileName) {
14
- let commandLine = (0, language_core_1.createParsedCommandLine)(ts, sys, configFileName);
14
+ let commandLine = (0, language_core_1.createParsedCommandLine)(ts, sys, configFileName, true);
15
15
  let sysVersion = sys.version;
16
16
  let newSysVersion = await sys.sync();
17
17
  while (sysVersion !== newSysVersion) {
18
- commandLine = (0, language_core_1.createParsedCommandLine)(ts, sys, configFileName);
18
+ commandLine = (0, language_core_1.createParsedCommandLine)(ts, sys, configFileName, true);
19
19
  sysVersion = newSysVersion;
20
20
  newSysVersion = await sys.sync();
21
21
  }
@@ -30,10 +30,7 @@ function initialize(server, params, ts, tsLocalized) {
30
30
  updateFileWatcher(vueCompilerOptions);
31
31
  return {
32
32
  languagePlugins: [
33
- (0, language_core_1.createVueLanguagePlugin)(ts, compilerOptions, {
34
- ...vueCompilerOptions,
35
- __setupedGlobalTypes: () => true,
36
- }, s => uriConverter.asFileName(s)),
33
+ (0, language_core_1.createVueLanguagePlugin)(ts, compilerOptions, vueCompilerOptions, s => uriConverter.asFileName(s)),
37
34
  ],
38
35
  setup({ project }) {
39
36
  project.vue = { compilerOptions: vueCompilerOptions };
@@ -42,7 +39,7 @@ function initialize(server, params, ts, tsLocalized) {
42
39
  const fileExists = project.typescript.languageServiceHost.fileExists.bind(project.typescript.languageServiceHost);
43
40
  const getScriptSnapshot = project.typescript.languageServiceHost.getScriptSnapshot.bind(project.typescript.languageServiceHost);
44
41
  const globalTypesName = `${vueCompilerOptions.lib}_${vueCompilerOptions.target}_${vueCompilerOptions.strictTemplates}.d.ts`;
45
- const globalTypesContents = (0, language_core_1.generateGlobalTypes)('global', vueCompilerOptions.lib, vueCompilerOptions.target, vueCompilerOptions.strictTemplates);
42
+ const globalTypesContents = `// @ts-nocheck\nexport {};\n` + (0, language_core_1.generateGlobalTypes)(vueCompilerOptions.lib, vueCompilerOptions.target, vueCompilerOptions.strictTemplates);
46
43
  const globalTypesSnapshot = {
47
44
  getText: (start, end) => globalTypesContents.substring(start, end),
48
45
  getLength: () => globalTypesContents.length,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/language-server",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -18,11 +18,11 @@
18
18
  "@volar/language-core": "~2.4.1",
19
19
  "@volar/language-server": "~2.4.1",
20
20
  "@volar/test-utils": "~2.4.1",
21
- "@vue/language-core": "2.1.4",
22
- "@vue/language-service": "2.1.4",
23
- "@vue/typescript-plugin": "2.1.4",
21
+ "@vue/language-core": "2.1.6",
22
+ "@vue/language-service": "2.1.6",
23
+ "@vue/typescript-plugin": "2.1.6",
24
24
  "vscode-languageserver-protocol": "^3.17.5",
25
25
  "vscode-uri": "^3.0.8"
26
26
  },
27
- "gitHead": "5e197d08eaef57209ff2927c943ba1db3bf4eff6"
27
+ "gitHead": "fd61953ce9eb924eeaf4df0bf8d2237267321194"
28
28
  }