@volar/language-server 1.2.0-alpha.1 → 1.2.0-alpha.2

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.
@@ -14,7 +14,7 @@ export interface ProjectContext {
14
14
  }
15
15
  export type Project = ReturnType<typeof createProject>;
16
16
  export declare function createProject(context: ProjectContext): Promise<{
17
- tsConfig: ts.CompilerOptions | path.PosixPath;
17
+ tsConfig: path.PosixPath | ts.CompilerOptions;
18
18
  scripts: {
19
19
  clear: () => void;
20
20
  values: () => IterableIterator<{
@@ -12,7 +12,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
12
12
  projects: {
13
13
  clear: () => void;
14
14
  values: () => IterableIterator<Promise<{
15
- tsConfig: ts.CompilerOptions | path.PosixPath;
15
+ tsConfig: path.PosixPath | ts.CompilerOptions;
16
16
  scripts: {
17
17
  clear: () => void;
18
18
  values: () => IterableIterator<{
@@ -162,7 +162,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
162
162
  }>>;
163
163
  uriDelete: (_uri: string) => boolean;
164
164
  uriGet: (_uri: string) => Promise<{
165
- tsConfig: ts.CompilerOptions | path.PosixPath;
165
+ tsConfig: path.PosixPath | ts.CompilerOptions;
166
166
  scripts: {
167
167
  clear: () => void;
168
168
  values: () => IterableIterator<{
@@ -312,7 +312,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
312
312
  }> | undefined;
313
313
  uriHas: (_uri: string) => boolean;
314
314
  uriSet: (_uri: string, item: Promise<{
315
- tsConfig: ts.CompilerOptions | path.PosixPath;
315
+ tsConfig: path.PosixPath | ts.CompilerOptions;
316
316
  scripts: {
317
317
  clear: () => void;
318
318
  values: () => IterableIterator<{
@@ -462,7 +462,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
462
462
  }>) => void;
463
463
  pathDelete: (path: string) => boolean;
464
464
  pathGet: (path: string) => Promise<{
465
- tsConfig: ts.CompilerOptions | path.PosixPath;
465
+ tsConfig: path.PosixPath | ts.CompilerOptions;
466
466
  scripts: {
467
467
  clear: () => void;
468
468
  values: () => IterableIterator<{
@@ -611,7 +611,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
611
611
  dispose: () => void;
612
612
  }> | undefined;
613
613
  pathHas: (path: string) => Promise<{
614
- tsConfig: ts.CompilerOptions | path.PosixPath;
614
+ tsConfig: path.PosixPath | ts.CompilerOptions;
615
615
  scripts: {
616
616
  clear: () => void;
617
617
  values: () => IterableIterator<{
@@ -760,7 +760,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
760
760
  dispose: () => void;
761
761
  }> | undefined;
762
762
  pathSet: (path: string, item: Promise<{
763
- tsConfig: ts.CompilerOptions | path.PosixPath;
763
+ tsConfig: path.PosixPath | ts.CompilerOptions;
764
764
  scripts: {
765
765
  clear: () => void;
766
766
  values: () => IterableIterator<{
@@ -913,7 +913,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
913
913
  getProjectAndTsConfig: (uri: string) => Promise<{
914
914
  tsconfig: string;
915
915
  project: {
916
- tsConfig: ts.CompilerOptions | path.PosixPath;
916
+ tsConfig: path.PosixPath | ts.CompilerOptions;
917
917
  scripts: {
918
918
  clear: () => void;
919
919
  values: () => IterableIterator<{
@@ -1063,7 +1063,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
1063
1063
  } | undefined;
1064
1064
  } | undefined>;
1065
1065
  getInferredProject: () => Promise<{
1066
- tsConfig: ts.CompilerOptions | path.PosixPath;
1066
+ tsConfig: path.PosixPath | ts.CompilerOptions;
1067
1067
  scripts: {
1068
1068
  clear: () => void;
1069
1069
  values: () => IterableIterator<{
@@ -1212,7 +1212,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
1212
1212
  dispose: () => void;
1213
1213
  }>;
1214
1214
  getInferredProjectDontCreate: () => Promise<{
1215
- tsConfig: ts.CompilerOptions | path.PosixPath;
1215
+ tsConfig: path.PosixPath | ts.CompilerOptions;
1216
1216
  scripts: {
1217
1217
  clear: () => void;
1218
1218
  values: () => IterableIterator<{
@@ -1,4 +1,4 @@
1
- /// <reference types="typesafe-path" />
1
+ /// <reference types="node_modules/.pnpm/typesafe-path@0.2.2/node_modules/typesafe-path" />
2
2
  import { ConfigurationHost } from '@volar/language-service';
3
3
  import type * as ts from 'typescript/lib/tsserverlibrary';
4
4
  import * as vscode from 'vscode-languageserver';
@@ -26,7 +26,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
26
26
  projects: {
27
27
  clear: () => void;
28
28
  values: () => IterableIterator<Promise<{
29
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
29
+ tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
30
30
  scripts: {
31
31
  clear: () => void;
32
32
  values: () => IterableIterator<{
@@ -176,7 +176,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
176
176
  }>>;
177
177
  uriDelete: (_uri: string) => boolean;
178
178
  uriGet: (_uri: string) => Promise<{
179
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
179
+ tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
180
180
  scripts: {
181
181
  clear: () => void;
182
182
  values: () => IterableIterator<{
@@ -326,7 +326,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
326
326
  }> | undefined;
327
327
  uriHas: (_uri: string) => boolean;
328
328
  uriSet: (_uri: string, item: Promise<{
329
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
329
+ tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
330
330
  scripts: {
331
331
  clear: () => void;
332
332
  values: () => IterableIterator<{
@@ -476,7 +476,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
476
476
  }>) => void;
477
477
  pathDelete: (path: string) => boolean;
478
478
  pathGet: (path: string) => Promise<{
479
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
479
+ tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
480
480
  scripts: {
481
481
  clear: () => void;
482
482
  values: () => IterableIterator<{
@@ -625,7 +625,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
625
625
  dispose: () => void;
626
626
  }> | undefined;
627
627
  pathHas: (path: string) => Promise<{
628
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
628
+ tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
629
629
  scripts: {
630
630
  clear: () => void;
631
631
  values: () => IterableIterator<{
@@ -774,7 +774,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
774
774
  dispose: () => void;
775
775
  }> | undefined;
776
776
  pathSet: (path: string, item: Promise<{
777
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
777
+ tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
778
778
  scripts: {
779
779
  clear: () => void;
780
780
  values: () => IterableIterator<{
@@ -927,7 +927,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
927
927
  getProjectAndTsConfig: (uri: string) => Promise<{
928
928
  tsconfig: string;
929
929
  project: {
930
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
930
+ tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
931
931
  scripts: {
932
932
  clear: () => void;
933
933
  values: () => IterableIterator<{
@@ -1077,7 +1077,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1077
1077
  } | undefined;
1078
1078
  } | undefined>;
1079
1079
  getInferredProject: () => Promise<{
1080
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
1080
+ tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
1081
1081
  scripts: {
1082
1082
  clear: () => void;
1083
1083
  values: () => IterableIterator<{
@@ -1226,7 +1226,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1226
1226
  dispose: () => void;
1227
1227
  }>;
1228
1228
  getInferredProjectDontCreate: () => Promise<{
1229
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
1229
+ tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
1230
1230
  scripts: {
1231
1231
  clear: () => void;
1232
1232
  values: () => IterableIterator<{
@@ -1380,7 +1380,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1380
1380
  getProject: (uri: string) => Promise<{
1381
1381
  tsconfig: string;
1382
1382
  project: {
1383
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
1383
+ tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
1384
1384
  scripts: {
1385
1385
  clear: () => void;
1386
1386
  values: () => IterableIterator<{
@@ -1531,7 +1531,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1531
1531
  } | {
1532
1532
  tsconfig: undefined;
1533
1533
  project: {
1534
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
1534
+ tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
1535
1535
  scripts: {
1536
1536
  clear: () => void;
1537
1537
  values: () => IterableIterator<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/language-server",
3
- "version": "1.2.0-alpha.1",
3
+ "version": "1.2.0-alpha.2",
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.2.0-alpha.1",
21
- "@volar/language-service": "1.2.0-alpha.1",
22
- "@volar/shared": "1.2.0-alpha.1",
20
+ "@volar/language-core": "1.2.0-alpha.2",
21
+ "@volar/language-service": "1.2.0-alpha.2",
22
+ "@volar/shared": "1.2.0-alpha.2",
23
23
  "@vscode/l10n": "^0.0.10",
24
24
  "request-light": "^0.6.0",
25
25
  "typesafe-path": "^0.2.2",
@@ -29,5 +29,5 @@
29
29
  "vscode-languageserver-textdocument": "^1.0.8",
30
30
  "vscode-uri": "^3.0.7"
31
31
  },
32
- "gitHead": "08f0fd7c8a0ac7ba92de978c3ee7338d1919ebd7"
32
+ "gitHead": "cc4da3728cbbc0933c9957c298d0a36090fbedc1"
33
33
  }