@volar/kit 2.0.0-alpha.10 → 2.0.0-alpha.12

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.
@@ -155,7 +155,7 @@ function createTypeScriptLanguageHost(env, createParsedCommandLine) {
155
155
  let shouldCheckRootFiles = false;
156
156
  const host = {
157
157
  getCurrentDirectory: () => {
158
- return env.uriToFileName(env.workspaceFolder.uri.toString());
158
+ return env.uriToFileName(env.workspaceFolder.toString());
159
159
  },
160
160
  getCompilationSettings: () => {
161
161
  return parsedCommandLine.options;
@@ -7,10 +7,7 @@ const vscode_uri_1 = require("vscode-uri");
7
7
  const utils_1 = require("./utils");
8
8
  function createServiceEnvironment(getSettings) {
9
9
  return {
10
- workspaceFolder: {
11
- uri: vscode_uri_1.URI.file(process.cwd()),
12
- name: '',
13
- },
10
+ workspaceFolder: vscode_uri_1.URI.file(process.cwd()),
14
11
  uriToFileName: utils_1.uriToFileName,
15
12
  fileNameToUri: utils_1.fileNameToUri,
16
13
  getConfiguration(section) {
package/lib/utils.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="typesafe-path" />
2
2
  import type * as path from 'typesafe-path/posix';
3
- import type * as ts from 'typescript/lib/tsserverlibrary';
3
+ import type * as ts from 'typescript';
4
4
  export declare const defaultCompilerOptions: ts.CompilerOptions;
5
5
  export declare function asPosix(path: string): path.PosixPath;
6
6
  export declare const uriToFileName: (uri: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/kit",
3
- "version": "2.0.0-alpha.10",
3
+ "version": "2.0.0-alpha.12",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -12,8 +12,8 @@
12
12
  "directory": "packages/kit"
13
13
  },
14
14
  "dependencies": {
15
- "@volar/language-service": "2.0.0-alpha.10",
16
- "@volar/typescript": "2.0.0-alpha.10",
15
+ "@volar/language-service": "2.0.0-alpha.12",
16
+ "@volar/typescript": "2.0.0-alpha.12",
17
17
  "typesafe-path": "^0.2.2",
18
18
  "vscode-languageserver-textdocument": "^1.0.11",
19
19
  "vscode-uri": "^3.0.8"
@@ -24,5 +24,5 @@
24
24
  "peerDependencies": {
25
25
  "typescript": "*"
26
26
  },
27
- "gitHead": "f320632bcffa06981de169ee3cdad79c29ecc1b5"
27
+ "gitHead": "1c15dd486f6e6174aa940c21f0ef45215ea2b854"
28
28
  }