@volar/language-server 1.2.0-alpha.13 → 1.2.0-alpha.14

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: path.PosixPath | ts.CompilerOptions;
17
+ tsConfig: ts.CompilerOptions | path.PosixPath;
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: path.PosixPath | ts.CompilerOptions;
15
+ tsConfig: ts.CompilerOptions | path.PosixPath;
16
16
  scripts: {
17
17
  clear: () => void;
18
18
  values: () => IterableIterator<{
@@ -160,7 +160,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
160
160
  }>>;
161
161
  uriDelete: (_uri: string) => boolean;
162
162
  uriGet: (_uri: string) => Promise<{
163
- tsConfig: path.PosixPath | ts.CompilerOptions;
163
+ tsConfig: ts.CompilerOptions | path.PosixPath;
164
164
  scripts: {
165
165
  clear: () => void;
166
166
  values: () => IterableIterator<{
@@ -308,7 +308,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
308
308
  }> | undefined;
309
309
  uriHas: (_uri: string) => boolean;
310
310
  uriSet: (_uri: string, item: Promise<{
311
- tsConfig: path.PosixPath | ts.CompilerOptions;
311
+ tsConfig: ts.CompilerOptions | path.PosixPath;
312
312
  scripts: {
313
313
  clear: () => void;
314
314
  values: () => IterableIterator<{
@@ -456,7 +456,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
456
456
  }>) => void;
457
457
  pathDelete: (path: string) => boolean;
458
458
  pathGet: (path: string) => Promise<{
459
- tsConfig: path.PosixPath | ts.CompilerOptions;
459
+ tsConfig: ts.CompilerOptions | path.PosixPath;
460
460
  scripts: {
461
461
  clear: () => void;
462
462
  values: () => IterableIterator<{
@@ -603,7 +603,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
603
603
  dispose: () => void;
604
604
  }> | undefined;
605
605
  pathHas: (path: string) => Promise<{
606
- tsConfig: path.PosixPath | ts.CompilerOptions;
606
+ tsConfig: ts.CompilerOptions | path.PosixPath;
607
607
  scripts: {
608
608
  clear: () => void;
609
609
  values: () => IterableIterator<{
@@ -750,7 +750,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
750
750
  dispose: () => void;
751
751
  }> | undefined;
752
752
  pathSet: (path: string, item: Promise<{
753
- tsConfig: path.PosixPath | ts.CompilerOptions;
753
+ tsConfig: ts.CompilerOptions | path.PosixPath;
754
754
  scripts: {
755
755
  clear: () => void;
756
756
  values: () => IterableIterator<{
@@ -901,7 +901,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
901
901
  getProjectAndTsConfig: (uri: string) => Promise<{
902
902
  tsconfig: string;
903
903
  project: {
904
- tsConfig: path.PosixPath | ts.CompilerOptions;
904
+ tsConfig: ts.CompilerOptions | path.PosixPath;
905
905
  scripts: {
906
906
  clear: () => void;
907
907
  values: () => IterableIterator<{
@@ -1049,7 +1049,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
1049
1049
  } | undefined;
1050
1050
  } | undefined>;
1051
1051
  getInferredProject: () => Promise<{
1052
- tsConfig: path.PosixPath | ts.CompilerOptions;
1052
+ tsConfig: ts.CompilerOptions | path.PosixPath;
1053
1053
  scripts: {
1054
1054
  clear: () => void;
1055
1055
  values: () => IterableIterator<{
@@ -1196,7 +1196,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
1196
1196
  dispose: () => void;
1197
1197
  }>;
1198
1198
  getInferredProjectDontCreate: () => Promise<{
1199
- tsConfig: path.PosixPath | ts.CompilerOptions;
1199
+ tsConfig: ts.CompilerOptions | path.PosixPath;
1200
1200
  scripts: {
1201
1201
  clear: () => void;
1202
1202
  values: () => IterableIterator<{
@@ -1,3 +1,4 @@
1
+ /// <reference types="node_modules/.pnpm/typesafe-path@0.2.2/node_modules/typesafe-path" />
1
2
  import { ConfigurationHost } from '@volar/language-service';
2
3
  import type * as ts from 'typescript/lib/tsserverlibrary';
3
4
  import * as vscode from 'vscode-languageserver';
@@ -25,7 +26,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
25
26
  projects: {
26
27
  clear: () => void;
27
28
  values: () => IterableIterator<Promise<{
28
- tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
29
+ tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
29
30
  scripts: {
30
31
  clear: () => void;
31
32
  values: () => IterableIterator<{
@@ -173,7 +174,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
173
174
  }>>;
174
175
  uriDelete: (_uri: string) => boolean;
175
176
  uriGet: (_uri: string) => Promise<{
176
- tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
177
+ tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
177
178
  scripts: {
178
179
  clear: () => void;
179
180
  values: () => IterableIterator<{
@@ -321,7 +322,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
321
322
  }> | undefined;
322
323
  uriHas: (_uri: string) => boolean;
323
324
  uriSet: (_uri: string, item: Promise<{
324
- tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
325
+ tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
325
326
  scripts: {
326
327
  clear: () => void;
327
328
  values: () => IterableIterator<{
@@ -469,7 +470,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
469
470
  }>) => void;
470
471
  pathDelete: (path: string) => boolean;
471
472
  pathGet: (path: string) => Promise<{
472
- tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
473
+ tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
473
474
  scripts: {
474
475
  clear: () => void;
475
476
  values: () => IterableIterator<{
@@ -616,7 +617,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
616
617
  dispose: () => void;
617
618
  }> | undefined;
618
619
  pathHas: (path: string) => Promise<{
619
- tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
620
+ tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
620
621
  scripts: {
621
622
  clear: () => void;
622
623
  values: () => IterableIterator<{
@@ -763,7 +764,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
763
764
  dispose: () => void;
764
765
  }> | undefined;
765
766
  pathSet: (path: string, item: Promise<{
766
- tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
767
+ tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
767
768
  scripts: {
768
769
  clear: () => void;
769
770
  values: () => IterableIterator<{
@@ -914,7 +915,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
914
915
  getProjectAndTsConfig: (uri: string) => Promise<{
915
916
  tsconfig: string;
916
917
  project: {
917
- tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
918
+ tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
918
919
  scripts: {
919
920
  clear: () => void;
920
921
  values: () => IterableIterator<{
@@ -1062,7 +1063,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1062
1063
  } | undefined;
1063
1064
  } | undefined>;
1064
1065
  getInferredProject: () => Promise<{
1065
- tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
1066
+ tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
1066
1067
  scripts: {
1067
1068
  clear: () => void;
1068
1069
  values: () => IterableIterator<{
@@ -1209,7 +1210,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1209
1210
  dispose: () => void;
1210
1211
  }>;
1211
1212
  getInferredProjectDontCreate: () => Promise<{
1212
- tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
1213
+ tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
1213
1214
  scripts: {
1214
1215
  clear: () => void;
1215
1216
  values: () => IterableIterator<{
@@ -1361,7 +1362,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1361
1362
  getProject: (uri: string) => Promise<{
1362
1363
  tsconfig: string;
1363
1364
  project: {
1364
- tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
1365
+ tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
1365
1366
  scripts: {
1366
1367
  clear: () => void;
1367
1368
  values: () => IterableIterator<{
@@ -1510,7 +1511,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1510
1511
  } | {
1511
1512
  tsconfig: undefined;
1512
1513
  project: {
1513
- tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
1514
+ tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
1514
1515
  scripts: {
1515
1516
  clear: () => void;
1516
1517
  values: () => IterableIterator<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/language-server",
3
- "version": "1.2.0-alpha.13",
3
+ "version": "1.2.0-alpha.14",
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.13",
21
- "@volar/language-service": "1.2.0-alpha.13",
22
- "@volar/shared": "1.2.0-alpha.13",
20
+ "@volar/language-core": "1.2.0-alpha.14",
21
+ "@volar/language-service": "1.2.0-alpha.14",
22
+ "@volar/shared": "1.2.0-alpha.14",
23
23
  "@vscode/l10n": "^0.0.11",
24
24
  "request-light": "^0.7.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": "2b935afad2e4e4e307ae525387f66516e496ba24"
32
+ "gitHead": "8257fccecf0ace51d89fff6d6f47a3f95b4ddd10"
33
33
  }