@volar/kit 1.7.10 → 1.8.1

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.
@@ -26,6 +26,7 @@ function createFormatter(config, compilerOptions = utils_1.defaultCompilerOption
26
26
  },
27
27
  getConfiguration: section => (0, utils_1.getConfiguration)(settings, section),
28
28
  fs: utils_1.fs,
29
+ console,
29
30
  }, config, createHost());
30
31
  return {
31
32
  formatFile,
@@ -66,7 +67,7 @@ function createFormatter(config, compilerOptions = utils_1.defaultCompilerOption
66
67
  const host = {
67
68
  getCurrentDirectory: () => '/',
68
69
  getCompilationSettings: () => compilerOptions,
69
- getProjectVersion: () => projectVersion++,
70
+ getProjectVersion: () => (projectVersion++).toString(),
70
71
  getScriptFileNames: () => fakeScriptSnapshot ? [fakeScriptFileName] : [],
71
72
  getScriptSnapshot: (fileName) => {
72
73
  if (fileName === fakeScriptFileName) {
@@ -14,6 +14,7 @@ function createLinter(config, host) {
14
14
  rootUri: vscode_uri_1.URI.parse((0, utils_1.fileNameToUri)(host.getCurrentDirectory())),
15
15
  getConfiguration: section => (0, utils_1.getConfiguration)(settings, section),
16
16
  fs: utils_1.fs,
17
+ console,
17
18
  }, config, host);
18
19
  return {
19
20
  check,
@@ -31,7 +31,7 @@ function createProjectBase(rootPath, createParsedCommandLine) {
31
31
  },
32
32
  getProjectVersion: () => {
33
33
  checkRootFilesUpdate();
34
- return projectVersion;
34
+ return projectVersion.toString();
35
35
  },
36
36
  getScriptFileNames: () => {
37
37
  checkRootFilesUpdate();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/kit",
3
- "version": "1.7.10",
3
+ "version": "1.8.1",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -13,7 +13,7 @@
13
13
  "directory": "packages/kit"
14
14
  },
15
15
  "dependencies": {
16
- "@volar/language-service": "1.7.10",
16
+ "@volar/language-service": "1.8.1",
17
17
  "typesafe-path": "^0.2.2",
18
18
  "vscode-languageserver-textdocument": "^1.0.8",
19
19
  "vscode-uri": "^3.0.7"
@@ -21,5 +21,5 @@
21
21
  "peerDependencies": {
22
22
  "typescript": "*"
23
23
  },
24
- "gitHead": "53c67c3fd1d11be3dba0ef199c282e605c980638"
24
+ "gitHead": "1fec004d7e3c5a28c0ad1d6a1d7a41ab98381abd"
25
25
  }