@volar/language-server 1.6.9 → 1.7.0

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="typesafe-path" />
2
1
  import * as path from 'typesafe-path/posix';
3
2
  import type * as ts from 'typescript/lib/tsserverlibrary';
4
3
  import * as vscode from 'vscode-languageserver';
@@ -14,55 +13,44 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
14
13
  projects: {
15
14
  clear: () => void;
16
15
  values: () => IterableIterator<Promise<{
17
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
16
+ context: import("./project").ProjectContext;
17
+ tsConfig: path.PosixPath | ts.CompilerOptions;
18
18
  scripts: {
19
19
  clear: () => void;
20
20
  values: () => IterableIterator<{
21
+ snapshot: ts.IScriptSnapshot;
21
22
  version: number;
22
- fileName: string;
23
- snapshot: ts.IScriptSnapshot | undefined;
24
- snapshotVersion: number | undefined;
25
- }>;
23
+ } | undefined>;
26
24
  uriDelete: (_uri: string) => boolean;
27
25
  uriGet: (_uri: string) => {
26
+ snapshot: ts.IScriptSnapshot;
28
27
  version: number;
29
- fileName: string;
30
- snapshot: ts.IScriptSnapshot | undefined;
31
- snapshotVersion: number | undefined;
32
28
  } | undefined;
33
29
  uriHas: (_uri: string) => boolean;
34
30
  uriSet: (_uri: string, item: {
31
+ snapshot: ts.IScriptSnapshot;
35
32
  version: number;
36
- fileName: string;
37
- snapshot: ts.IScriptSnapshot | undefined;
38
- snapshotVersion: number | undefined;
39
- }) => void;
33
+ } | undefined) => void;
40
34
  pathDelete: (path: string) => boolean;
41
35
  pathGet: (path: string) => {
36
+ snapshot: ts.IScriptSnapshot;
42
37
  version: number;
43
- fileName: string;
44
- snapshot: ts.IScriptSnapshot | undefined;
45
- snapshotVersion: number | undefined;
46
38
  } | undefined;
47
39
  pathHas: (path: string) => {
40
+ snapshot: ts.IScriptSnapshot;
48
41
  version: number;
49
- fileName: string;
50
- snapshot: ts.IScriptSnapshot | undefined;
51
- snapshotVersion: number | undefined;
52
42
  } | undefined;
53
43
  pathSet: (path: string, item: {
44
+ snapshot: ts.IScriptSnapshot;
54
45
  version: number;
55
- fileName: string;
56
- snapshot: ts.IScriptSnapshot | undefined;
57
- snapshotVersion: number | undefined;
58
- }) => void;
46
+ } | undefined) => void;
59
47
  };
60
- languageServiceHost: import("@volar/language-core").LanguageServiceHost;
48
+ languageHost: import("@volar/language-service").TypeScriptLanguageHost;
61
49
  getLanguageService: () => {
62
- triggerCharacters: string[];
63
- autoFormatTriggerCharacters: string[];
64
- signatureHelpTriggerCharacters: string[];
65
- signatureHelpRetriggerCharacters: string[];
50
+ getTriggerCharacters: () => string[];
51
+ getAutoFormatTriggerCharacters: () => string[];
52
+ getSignatureHelpTriggerCharacters: () => string[];
53
+ getSignatureHelpRetriggerCharacters: () => string[];
66
54
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
67
55
  ch: string;
68
56
  position: vscode.Position;
@@ -108,14 +96,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
108
96
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
109
97
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
110
98
  };
111
- dispose: () => void | undefined;
112
- context: import("@volar/language-service").ServiceContext;
99
+ dispose: () => void;
100
+ context: import("@volar/language-service").ServiceContext<any>;
113
101
  };
114
102
  getLanguageServiceDontCreate: () => {
115
- triggerCharacters: string[];
116
- autoFormatTriggerCharacters: string[];
117
- signatureHelpTriggerCharacters: string[];
118
- signatureHelpRetriggerCharacters: string[];
103
+ getTriggerCharacters: () => string[];
104
+ getAutoFormatTriggerCharacters: () => string[];
105
+ getSignatureHelpTriggerCharacters: () => string[];
106
+ getSignatureHelpRetriggerCharacters: () => string[];
119
107
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
120
108
  ch: string;
121
109
  position: vscode.Position;
@@ -161,64 +149,65 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
161
149
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
162
150
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
163
151
  };
164
- dispose: () => void | undefined;
165
- context: import("@volar/language-service").ServiceContext;
152
+ dispose: () => void;
153
+ context: import("@volar/language-service").ServiceContext<any>;
166
154
  } | undefined;
167
155
  getParsedCommandLine: () => ts.ParsedCommandLine;
168
156
  tryAddFile: (fileName: string) => void;
157
+ askedFiles: {
158
+ clear: () => void;
159
+ values: () => IterableIterator<boolean>;
160
+ uriDelete: (_uri: string) => boolean;
161
+ uriGet: (_uri: string) => boolean | undefined;
162
+ uriHas: (_uri: string) => boolean;
163
+ uriSet: (_uri: string, item: boolean) => void;
164
+ pathDelete: (path: string) => boolean;
165
+ pathGet: (path: string) => boolean | undefined;
166
+ pathHas: (path: string) => boolean | undefined;
167
+ pathSet: (path: string, item: boolean) => void;
168
+ };
169
169
  dispose: () => void;
170
170
  }>>;
171
171
  uriDelete: (_uri: string) => boolean;
172
172
  uriGet: (_uri: string) => Promise<{
173
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
173
+ context: import("./project").ProjectContext;
174
+ tsConfig: path.PosixPath | ts.CompilerOptions;
174
175
  scripts: {
175
176
  clear: () => void;
176
177
  values: () => IterableIterator<{
178
+ snapshot: ts.IScriptSnapshot;
177
179
  version: number;
178
- fileName: string;
179
- snapshot: ts.IScriptSnapshot | undefined;
180
- snapshotVersion: number | undefined;
181
- }>;
180
+ } | undefined>;
182
181
  uriDelete: (_uri: string) => boolean;
183
182
  uriGet: (_uri: string) => {
183
+ snapshot: ts.IScriptSnapshot;
184
184
  version: number;
185
- fileName: string;
186
- snapshot: ts.IScriptSnapshot | undefined;
187
- snapshotVersion: number | undefined;
188
185
  } | undefined;
189
186
  uriHas: (_uri: string) => boolean;
190
187
  uriSet: (_uri: string, item: {
188
+ snapshot: ts.IScriptSnapshot;
191
189
  version: number;
192
- fileName: string;
193
- snapshot: ts.IScriptSnapshot | undefined;
194
- snapshotVersion: number | undefined;
195
- }) => void;
190
+ } | undefined) => void;
196
191
  pathDelete: (path: string) => boolean;
197
192
  pathGet: (path: string) => {
193
+ snapshot: ts.IScriptSnapshot;
198
194
  version: number;
199
- fileName: string;
200
- snapshot: ts.IScriptSnapshot | undefined;
201
- snapshotVersion: number | undefined;
202
195
  } | undefined;
203
196
  pathHas: (path: string) => {
197
+ snapshot: ts.IScriptSnapshot;
204
198
  version: number;
205
- fileName: string;
206
- snapshot: ts.IScriptSnapshot | undefined;
207
- snapshotVersion: number | undefined;
208
199
  } | undefined;
209
200
  pathSet: (path: string, item: {
201
+ snapshot: ts.IScriptSnapshot;
210
202
  version: number;
211
- fileName: string;
212
- snapshot: ts.IScriptSnapshot | undefined;
213
- snapshotVersion: number | undefined;
214
- }) => void;
203
+ } | undefined) => void;
215
204
  };
216
- languageServiceHost: import("@volar/language-core").LanguageServiceHost;
205
+ languageHost: import("@volar/language-service").TypeScriptLanguageHost;
217
206
  getLanguageService: () => {
218
- triggerCharacters: string[];
219
- autoFormatTriggerCharacters: string[];
220
- signatureHelpTriggerCharacters: string[];
221
- signatureHelpRetriggerCharacters: string[];
207
+ getTriggerCharacters: () => string[];
208
+ getAutoFormatTriggerCharacters: () => string[];
209
+ getSignatureHelpTriggerCharacters: () => string[];
210
+ getSignatureHelpRetriggerCharacters: () => string[];
222
211
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
223
212
  ch: string;
224
213
  position: vscode.Position;
@@ -264,14 +253,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
264
253
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
265
254
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
266
255
  };
267
- dispose: () => void | undefined;
268
- context: import("@volar/language-service").ServiceContext;
256
+ dispose: () => void;
257
+ context: import("@volar/language-service").ServiceContext<any>;
269
258
  };
270
259
  getLanguageServiceDontCreate: () => {
271
- triggerCharacters: string[];
272
- autoFormatTriggerCharacters: string[];
273
- signatureHelpTriggerCharacters: string[];
274
- signatureHelpRetriggerCharacters: string[];
260
+ getTriggerCharacters: () => string[];
261
+ getAutoFormatTriggerCharacters: () => string[];
262
+ getSignatureHelpTriggerCharacters: () => string[];
263
+ getSignatureHelpRetriggerCharacters: () => string[];
275
264
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
276
265
  ch: string;
277
266
  position: vscode.Position;
@@ -317,64 +306,65 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
317
306
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
318
307
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
319
308
  };
320
- dispose: () => void | undefined;
321
- context: import("@volar/language-service").ServiceContext;
309
+ dispose: () => void;
310
+ context: import("@volar/language-service").ServiceContext<any>;
322
311
  } | undefined;
323
312
  getParsedCommandLine: () => ts.ParsedCommandLine;
324
313
  tryAddFile: (fileName: string) => void;
314
+ askedFiles: {
315
+ clear: () => void;
316
+ values: () => IterableIterator<boolean>;
317
+ uriDelete: (_uri: string) => boolean;
318
+ uriGet: (_uri: string) => boolean | undefined;
319
+ uriHas: (_uri: string) => boolean;
320
+ uriSet: (_uri: string, item: boolean) => void;
321
+ pathDelete: (path: string) => boolean;
322
+ pathGet: (path: string) => boolean | undefined;
323
+ pathHas: (path: string) => boolean | undefined;
324
+ pathSet: (path: string, item: boolean) => void;
325
+ };
325
326
  dispose: () => void;
326
327
  }> | undefined;
327
328
  uriHas: (_uri: string) => boolean;
328
329
  uriSet: (_uri: string, item: Promise<{
329
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
330
+ context: import("./project").ProjectContext;
331
+ tsConfig: path.PosixPath | ts.CompilerOptions;
330
332
  scripts: {
331
333
  clear: () => void;
332
334
  values: () => IterableIterator<{
335
+ snapshot: ts.IScriptSnapshot;
333
336
  version: number;
334
- fileName: string;
335
- snapshot: ts.IScriptSnapshot | undefined;
336
- snapshotVersion: number | undefined;
337
- }>;
337
+ } | undefined>;
338
338
  uriDelete: (_uri: string) => boolean;
339
339
  uriGet: (_uri: string) => {
340
+ snapshot: ts.IScriptSnapshot;
340
341
  version: number;
341
- fileName: string;
342
- snapshot: ts.IScriptSnapshot | undefined;
343
- snapshotVersion: number | undefined;
344
342
  } | undefined;
345
343
  uriHas: (_uri: string) => boolean;
346
344
  uriSet: (_uri: string, item: {
345
+ snapshot: ts.IScriptSnapshot;
347
346
  version: number;
348
- fileName: string;
349
- snapshot: ts.IScriptSnapshot | undefined;
350
- snapshotVersion: number | undefined;
351
- }) => void;
347
+ } | undefined) => void;
352
348
  pathDelete: (path: string) => boolean;
353
349
  pathGet: (path: string) => {
350
+ snapshot: ts.IScriptSnapshot;
354
351
  version: number;
355
- fileName: string;
356
- snapshot: ts.IScriptSnapshot | undefined;
357
- snapshotVersion: number | undefined;
358
352
  } | undefined;
359
353
  pathHas: (path: string) => {
354
+ snapshot: ts.IScriptSnapshot;
360
355
  version: number;
361
- fileName: string;
362
- snapshot: ts.IScriptSnapshot | undefined;
363
- snapshotVersion: number | undefined;
364
356
  } | undefined;
365
357
  pathSet: (path: string, item: {
358
+ snapshot: ts.IScriptSnapshot;
366
359
  version: number;
367
- fileName: string;
368
- snapshot: ts.IScriptSnapshot | undefined;
369
- snapshotVersion: number | undefined;
370
- }) => void;
360
+ } | undefined) => void;
371
361
  };
372
- languageServiceHost: import("@volar/language-core").LanguageServiceHost;
362
+ languageHost: import("@volar/language-service").TypeScriptLanguageHost;
373
363
  getLanguageService: () => {
374
- triggerCharacters: string[];
375
- autoFormatTriggerCharacters: string[];
376
- signatureHelpTriggerCharacters: string[];
377
- signatureHelpRetriggerCharacters: string[];
364
+ getTriggerCharacters: () => string[];
365
+ getAutoFormatTriggerCharacters: () => string[];
366
+ getSignatureHelpTriggerCharacters: () => string[];
367
+ getSignatureHelpRetriggerCharacters: () => string[];
378
368
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
379
369
  ch: string;
380
370
  position: vscode.Position;
@@ -420,14 +410,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
420
410
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
421
411
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
422
412
  };
423
- dispose: () => void | undefined;
424
- context: import("@volar/language-service").ServiceContext;
413
+ dispose: () => void;
414
+ context: import("@volar/language-service").ServiceContext<any>;
425
415
  };
426
416
  getLanguageServiceDontCreate: () => {
427
- triggerCharacters: string[];
428
- autoFormatTriggerCharacters: string[];
429
- signatureHelpTriggerCharacters: string[];
430
- signatureHelpRetriggerCharacters: string[];
417
+ getTriggerCharacters: () => string[];
418
+ getAutoFormatTriggerCharacters: () => string[];
419
+ getSignatureHelpTriggerCharacters: () => string[];
420
+ getSignatureHelpRetriggerCharacters: () => string[];
431
421
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
432
422
  ch: string;
433
423
  position: vscode.Position;
@@ -473,64 +463,65 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
473
463
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
474
464
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
475
465
  };
476
- dispose: () => void | undefined;
477
- context: import("@volar/language-service").ServiceContext;
466
+ dispose: () => void;
467
+ context: import("@volar/language-service").ServiceContext<any>;
478
468
  } | undefined;
479
469
  getParsedCommandLine: () => ts.ParsedCommandLine;
480
470
  tryAddFile: (fileName: string) => void;
471
+ askedFiles: {
472
+ clear: () => void;
473
+ values: () => IterableIterator<boolean>;
474
+ uriDelete: (_uri: string) => boolean;
475
+ uriGet: (_uri: string) => boolean | undefined;
476
+ uriHas: (_uri: string) => boolean;
477
+ uriSet: (_uri: string, item: boolean) => void;
478
+ pathDelete: (path: string) => boolean;
479
+ pathGet: (path: string) => boolean | undefined;
480
+ pathHas: (path: string) => boolean | undefined;
481
+ pathSet: (path: string, item: boolean) => void;
482
+ };
481
483
  dispose: () => void;
482
484
  }>) => void;
483
485
  pathDelete: (path: string) => boolean;
484
486
  pathGet: (path: string) => Promise<{
485
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
487
+ context: import("./project").ProjectContext;
488
+ tsConfig: path.PosixPath | ts.CompilerOptions;
486
489
  scripts: {
487
490
  clear: () => void;
488
491
  values: () => IterableIterator<{
492
+ snapshot: ts.IScriptSnapshot;
489
493
  version: number;
490
- fileName: string;
491
- snapshot: ts.IScriptSnapshot | undefined;
492
- snapshotVersion: number | undefined;
493
- }>;
494
+ } | undefined>;
494
495
  uriDelete: (_uri: string) => boolean;
495
496
  uriGet: (_uri: string) => {
497
+ snapshot: ts.IScriptSnapshot;
496
498
  version: number;
497
- fileName: string;
498
- snapshot: ts.IScriptSnapshot | undefined;
499
- snapshotVersion: number | undefined;
500
499
  } | undefined;
501
500
  uriHas: (_uri: string) => boolean;
502
501
  uriSet: (_uri: string, item: {
502
+ snapshot: ts.IScriptSnapshot;
503
503
  version: number;
504
- fileName: string;
505
- snapshot: ts.IScriptSnapshot | undefined;
506
- snapshotVersion: number | undefined;
507
- }) => void;
504
+ } | undefined) => void;
508
505
  pathDelete: (path: string) => boolean;
509
506
  pathGet: (path: string) => {
507
+ snapshot: ts.IScriptSnapshot;
510
508
  version: number;
511
- fileName: string;
512
- snapshot: ts.IScriptSnapshot | undefined;
513
- snapshotVersion: number | undefined;
514
509
  } | undefined;
515
510
  pathHas: (path: string) => {
511
+ snapshot: ts.IScriptSnapshot;
516
512
  version: number;
517
- fileName: string;
518
- snapshot: ts.IScriptSnapshot | undefined;
519
- snapshotVersion: number | undefined;
520
513
  } | undefined;
521
514
  pathSet: (path: string, item: {
515
+ snapshot: ts.IScriptSnapshot;
522
516
  version: number;
523
- fileName: string;
524
- snapshot: ts.IScriptSnapshot | undefined;
525
- snapshotVersion: number | undefined;
526
- }) => void;
517
+ } | undefined) => void;
527
518
  };
528
- languageServiceHost: import("@volar/language-core").LanguageServiceHost;
519
+ languageHost: import("@volar/language-service").TypeScriptLanguageHost;
529
520
  getLanguageService: () => {
530
- triggerCharacters: string[];
531
- autoFormatTriggerCharacters: string[];
532
- signatureHelpTriggerCharacters: string[];
533
- signatureHelpRetriggerCharacters: string[];
521
+ getTriggerCharacters: () => string[];
522
+ getAutoFormatTriggerCharacters: () => string[];
523
+ getSignatureHelpTriggerCharacters: () => string[];
524
+ getSignatureHelpRetriggerCharacters: () => string[];
534
525
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
535
526
  ch: string;
536
527
  position: vscode.Position;
@@ -576,14 +567,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
576
567
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
577
568
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
578
569
  };
579
- dispose: () => void | undefined;
580
- context: import("@volar/language-service").ServiceContext;
570
+ dispose: () => void;
571
+ context: import("@volar/language-service").ServiceContext<any>;
581
572
  };
582
573
  getLanguageServiceDontCreate: () => {
583
- triggerCharacters: string[];
584
- autoFormatTriggerCharacters: string[];
585
- signatureHelpTriggerCharacters: string[];
586
- signatureHelpRetriggerCharacters: string[];
574
+ getTriggerCharacters: () => string[];
575
+ getAutoFormatTriggerCharacters: () => string[];
576
+ getSignatureHelpTriggerCharacters: () => string[];
577
+ getSignatureHelpRetriggerCharacters: () => string[];
587
578
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
588
579
  ch: string;
589
580
  position: vscode.Position;
@@ -629,63 +620,64 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
629
620
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
630
621
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
631
622
  };
632
- dispose: () => void | undefined;
633
- context: import("@volar/language-service").ServiceContext;
623
+ dispose: () => void;
624
+ context: import("@volar/language-service").ServiceContext<any>;
634
625
  } | undefined;
635
626
  getParsedCommandLine: () => ts.ParsedCommandLine;
636
627
  tryAddFile: (fileName: string) => void;
628
+ askedFiles: {
629
+ clear: () => void;
630
+ values: () => IterableIterator<boolean>;
631
+ uriDelete: (_uri: string) => boolean;
632
+ uriGet: (_uri: string) => boolean | undefined;
633
+ uriHas: (_uri: string) => boolean;
634
+ uriSet: (_uri: string, item: boolean) => void;
635
+ pathDelete: (path: string) => boolean;
636
+ pathGet: (path: string) => boolean | undefined;
637
+ pathHas: (path: string) => boolean | undefined;
638
+ pathSet: (path: string, item: boolean) => void;
639
+ };
637
640
  dispose: () => void;
638
641
  }> | undefined;
639
642
  pathHas: (path: string) => Promise<{
640
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
643
+ context: import("./project").ProjectContext;
644
+ tsConfig: path.PosixPath | ts.CompilerOptions;
641
645
  scripts: {
642
646
  clear: () => void;
643
647
  values: () => IterableIterator<{
648
+ snapshot: ts.IScriptSnapshot;
644
649
  version: number;
645
- fileName: string;
646
- snapshot: ts.IScriptSnapshot | undefined;
647
- snapshotVersion: number | undefined;
648
- }>;
650
+ } | undefined>;
649
651
  uriDelete: (_uri: string) => boolean;
650
652
  uriGet: (_uri: string) => {
653
+ snapshot: ts.IScriptSnapshot;
651
654
  version: number;
652
- fileName: string;
653
- snapshot: ts.IScriptSnapshot | undefined;
654
- snapshotVersion: number | undefined;
655
655
  } | undefined;
656
656
  uriHas: (_uri: string) => boolean;
657
657
  uriSet: (_uri: string, item: {
658
+ snapshot: ts.IScriptSnapshot;
658
659
  version: number;
659
- fileName: string;
660
- snapshot: ts.IScriptSnapshot | undefined;
661
- snapshotVersion: number | undefined;
662
- }) => void;
660
+ } | undefined) => void;
663
661
  pathDelete: (path: string) => boolean;
664
662
  pathGet: (path: string) => {
663
+ snapshot: ts.IScriptSnapshot;
665
664
  version: number;
666
- fileName: string;
667
- snapshot: ts.IScriptSnapshot | undefined;
668
- snapshotVersion: number | undefined;
669
665
  } | undefined;
670
666
  pathHas: (path: string) => {
667
+ snapshot: ts.IScriptSnapshot;
671
668
  version: number;
672
- fileName: string;
673
- snapshot: ts.IScriptSnapshot | undefined;
674
- snapshotVersion: number | undefined;
675
669
  } | undefined;
676
670
  pathSet: (path: string, item: {
671
+ snapshot: ts.IScriptSnapshot;
677
672
  version: number;
678
- fileName: string;
679
- snapshot: ts.IScriptSnapshot | undefined;
680
- snapshotVersion: number | undefined;
681
- }) => void;
673
+ } | undefined) => void;
682
674
  };
683
- languageServiceHost: import("@volar/language-core").LanguageServiceHost;
675
+ languageHost: import("@volar/language-service").TypeScriptLanguageHost;
684
676
  getLanguageService: () => {
685
- triggerCharacters: string[];
686
- autoFormatTriggerCharacters: string[];
687
- signatureHelpTriggerCharacters: string[];
688
- signatureHelpRetriggerCharacters: string[];
677
+ getTriggerCharacters: () => string[];
678
+ getAutoFormatTriggerCharacters: () => string[];
679
+ getSignatureHelpTriggerCharacters: () => string[];
680
+ getSignatureHelpRetriggerCharacters: () => string[];
689
681
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
690
682
  ch: string;
691
683
  position: vscode.Position;
@@ -731,14 +723,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
731
723
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
732
724
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
733
725
  };
734
- dispose: () => void | undefined;
735
- context: import("@volar/language-service").ServiceContext;
726
+ dispose: () => void;
727
+ context: import("@volar/language-service").ServiceContext<any>;
736
728
  };
737
729
  getLanguageServiceDontCreate: () => {
738
- triggerCharacters: string[];
739
- autoFormatTriggerCharacters: string[];
740
- signatureHelpTriggerCharacters: string[];
741
- signatureHelpRetriggerCharacters: string[];
730
+ getTriggerCharacters: () => string[];
731
+ getAutoFormatTriggerCharacters: () => string[];
732
+ getSignatureHelpTriggerCharacters: () => string[];
733
+ getSignatureHelpRetriggerCharacters: () => string[];
742
734
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
743
735
  ch: string;
744
736
  position: vscode.Position;
@@ -784,63 +776,64 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
784
776
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
785
777
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
786
778
  };
787
- dispose: () => void | undefined;
788
- context: import("@volar/language-service").ServiceContext;
779
+ dispose: () => void;
780
+ context: import("@volar/language-service").ServiceContext<any>;
789
781
  } | undefined;
790
782
  getParsedCommandLine: () => ts.ParsedCommandLine;
791
783
  tryAddFile: (fileName: string) => void;
784
+ askedFiles: {
785
+ clear: () => void;
786
+ values: () => IterableIterator<boolean>;
787
+ uriDelete: (_uri: string) => boolean;
788
+ uriGet: (_uri: string) => boolean | undefined;
789
+ uriHas: (_uri: string) => boolean;
790
+ uriSet: (_uri: string, item: boolean) => void;
791
+ pathDelete: (path: string) => boolean;
792
+ pathGet: (path: string) => boolean | undefined;
793
+ pathHas: (path: string) => boolean | undefined;
794
+ pathSet: (path: string, item: boolean) => void;
795
+ };
792
796
  dispose: () => void;
793
797
  }> | undefined;
794
798
  pathSet: (path: string, item: Promise<{
795
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
799
+ context: import("./project").ProjectContext;
800
+ tsConfig: path.PosixPath | ts.CompilerOptions;
796
801
  scripts: {
797
802
  clear: () => void;
798
803
  values: () => IterableIterator<{
804
+ snapshot: ts.IScriptSnapshot;
799
805
  version: number;
800
- fileName: string;
801
- snapshot: ts.IScriptSnapshot | undefined;
802
- snapshotVersion: number | undefined;
803
- }>;
806
+ } | undefined>;
804
807
  uriDelete: (_uri: string) => boolean;
805
808
  uriGet: (_uri: string) => {
809
+ snapshot: ts.IScriptSnapshot;
806
810
  version: number;
807
- fileName: string;
808
- snapshot: ts.IScriptSnapshot | undefined;
809
- snapshotVersion: number | undefined;
810
811
  } | undefined;
811
812
  uriHas: (_uri: string) => boolean;
812
813
  uriSet: (_uri: string, item: {
814
+ snapshot: ts.IScriptSnapshot;
813
815
  version: number;
814
- fileName: string;
815
- snapshot: ts.IScriptSnapshot | undefined;
816
- snapshotVersion: number | undefined;
817
- }) => void;
816
+ } | undefined) => void;
818
817
  pathDelete: (path: string) => boolean;
819
818
  pathGet: (path: string) => {
819
+ snapshot: ts.IScriptSnapshot;
820
820
  version: number;
821
- fileName: string;
822
- snapshot: ts.IScriptSnapshot | undefined;
823
- snapshotVersion: number | undefined;
824
821
  } | undefined;
825
822
  pathHas: (path: string) => {
823
+ snapshot: ts.IScriptSnapshot;
826
824
  version: number;
827
- fileName: string;
828
- snapshot: ts.IScriptSnapshot | undefined;
829
- snapshotVersion: number | undefined;
830
825
  } | undefined;
831
826
  pathSet: (path: string, item: {
827
+ snapshot: ts.IScriptSnapshot;
832
828
  version: number;
833
- fileName: string;
834
- snapshot: ts.IScriptSnapshot | undefined;
835
- snapshotVersion: number | undefined;
836
- }) => void;
829
+ } | undefined) => void;
837
830
  };
838
- languageServiceHost: import("@volar/language-core").LanguageServiceHost;
831
+ languageHost: import("@volar/language-service").TypeScriptLanguageHost;
839
832
  getLanguageService: () => {
840
- triggerCharacters: string[];
841
- autoFormatTriggerCharacters: string[];
842
- signatureHelpTriggerCharacters: string[];
843
- signatureHelpRetriggerCharacters: string[];
833
+ getTriggerCharacters: () => string[];
834
+ getAutoFormatTriggerCharacters: () => string[];
835
+ getSignatureHelpTriggerCharacters: () => string[];
836
+ getSignatureHelpRetriggerCharacters: () => string[];
844
837
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
845
838
  ch: string;
846
839
  position: vscode.Position;
@@ -886,14 +879,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
886
879
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
887
880
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
888
881
  };
889
- dispose: () => void | undefined;
890
- context: import("@volar/language-service").ServiceContext;
882
+ dispose: () => void;
883
+ context: import("@volar/language-service").ServiceContext<any>;
891
884
  };
892
885
  getLanguageServiceDontCreate: () => {
893
- triggerCharacters: string[];
894
- autoFormatTriggerCharacters: string[];
895
- signatureHelpTriggerCharacters: string[];
896
- signatureHelpRetriggerCharacters: string[];
886
+ getTriggerCharacters: () => string[];
887
+ getAutoFormatTriggerCharacters: () => string[];
888
+ getSignatureHelpTriggerCharacters: () => string[];
889
+ getSignatureHelpRetriggerCharacters: () => string[];
897
890
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
898
891
  ch: string;
899
892
  position: vscode.Position;
@@ -939,67 +932,67 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
939
932
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
940
933
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
941
934
  };
942
- dispose: () => void | undefined;
943
- context: import("@volar/language-service").ServiceContext;
935
+ dispose: () => void;
936
+ context: import("@volar/language-service").ServiceContext<any>;
944
937
  } | undefined;
945
938
  getParsedCommandLine: () => ts.ParsedCommandLine;
946
939
  tryAddFile: (fileName: string) => void;
940
+ askedFiles: {
941
+ clear: () => void;
942
+ values: () => IterableIterator<boolean>;
943
+ uriDelete: (_uri: string) => boolean;
944
+ uriGet: (_uri: string) => boolean | undefined;
945
+ uriHas: (_uri: string) => boolean;
946
+ uriSet: (_uri: string, item: boolean) => void;
947
+ pathDelete: (path: string) => boolean;
948
+ pathGet: (path: string) => boolean | undefined;
949
+ pathHas: (path: string) => boolean | undefined;
950
+ pathSet: (path: string, item: boolean) => void;
951
+ };
947
952
  dispose: () => void;
948
953
  }>) => void;
949
954
  };
950
- documentRegistry: ts.DocumentRegistry | undefined;
951
955
  getProjectAndTsConfig: (uri: string) => Promise<{
952
956
  tsconfig: string;
953
957
  project: {
954
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
958
+ context: import("./project").ProjectContext;
959
+ tsConfig: path.PosixPath | ts.CompilerOptions;
955
960
  scripts: {
956
961
  clear: () => void;
957
962
  values: () => IterableIterator<{
963
+ snapshot: ts.IScriptSnapshot;
958
964
  version: number;
959
- fileName: string;
960
- snapshot: ts.IScriptSnapshot | undefined;
961
- snapshotVersion: number | undefined;
962
- }>;
965
+ } | undefined>;
963
966
  uriDelete: (_uri: string) => boolean;
964
967
  uriGet: (_uri: string) => {
968
+ snapshot: ts.IScriptSnapshot;
965
969
  version: number;
966
- fileName: string;
967
- snapshot: ts.IScriptSnapshot | undefined;
968
- snapshotVersion: number | undefined;
969
970
  } | undefined;
970
971
  uriHas: (_uri: string) => boolean;
971
972
  uriSet: (_uri: string, item: {
973
+ snapshot: ts.IScriptSnapshot;
972
974
  version: number;
973
- fileName: string;
974
- snapshot: ts.IScriptSnapshot | undefined;
975
- snapshotVersion: number | undefined;
976
- }) => void;
975
+ } | undefined) => void;
977
976
  pathDelete: (path: string) => boolean;
978
977
  pathGet: (path: string) => {
978
+ snapshot: ts.IScriptSnapshot;
979
979
  version: number;
980
- fileName: string;
981
- snapshot: ts.IScriptSnapshot | undefined;
982
- snapshotVersion: number | undefined;
983
980
  } | undefined;
984
981
  pathHas: (path: string) => {
982
+ snapshot: ts.IScriptSnapshot;
985
983
  version: number;
986
- fileName: string;
987
- snapshot: ts.IScriptSnapshot | undefined;
988
- snapshotVersion: number | undefined;
989
984
  } | undefined;
990
985
  pathSet: (path: string, item: {
986
+ snapshot: ts.IScriptSnapshot;
991
987
  version: number;
992
- fileName: string;
993
- snapshot: ts.IScriptSnapshot | undefined;
994
- snapshotVersion: number | undefined;
995
- }) => void;
988
+ } | undefined) => void;
996
989
  };
997
- languageServiceHost: import("@volar/language-core").LanguageServiceHost;
990
+ languageHost: import("@volar/language-service").TypeScriptLanguageHost;
998
991
  getLanguageService: () => {
999
- triggerCharacters: string[];
1000
- autoFormatTriggerCharacters: string[];
1001
- signatureHelpTriggerCharacters: string[];
1002
- signatureHelpRetriggerCharacters: string[];
992
+ getTriggerCharacters: () => string[];
993
+ getAutoFormatTriggerCharacters: () => string[];
994
+ getSignatureHelpTriggerCharacters: () => string[];
995
+ getSignatureHelpRetriggerCharacters: () => string[];
1003
996
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1004
997
  ch: string;
1005
998
  position: vscode.Position;
@@ -1045,14 +1038,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
1045
1038
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1046
1039
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1047
1040
  };
1048
- dispose: () => void | undefined;
1049
- context: import("@volar/language-service").ServiceContext;
1041
+ dispose: () => void;
1042
+ context: import("@volar/language-service").ServiceContext<any>;
1050
1043
  };
1051
1044
  getLanguageServiceDontCreate: () => {
1052
- triggerCharacters: string[];
1053
- autoFormatTriggerCharacters: string[];
1054
- signatureHelpTriggerCharacters: string[];
1055
- signatureHelpRetriggerCharacters: string[];
1045
+ getTriggerCharacters: () => string[];
1046
+ getAutoFormatTriggerCharacters: () => string[];
1047
+ getSignatureHelpTriggerCharacters: () => string[];
1048
+ getSignatureHelpRetriggerCharacters: () => string[];
1056
1049
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1057
1050
  ch: string;
1058
1051
  position: vscode.Position;
@@ -1098,64 +1091,65 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
1098
1091
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1099
1092
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1100
1093
  };
1101
- dispose: () => void | undefined;
1102
- context: import("@volar/language-service").ServiceContext;
1094
+ dispose: () => void;
1095
+ context: import("@volar/language-service").ServiceContext<any>;
1103
1096
  } | undefined;
1104
1097
  getParsedCommandLine: () => ts.ParsedCommandLine;
1105
1098
  tryAddFile: (fileName: string) => void;
1099
+ askedFiles: {
1100
+ clear: () => void;
1101
+ values: () => IterableIterator<boolean>;
1102
+ uriDelete: (_uri: string) => boolean;
1103
+ uriGet: (_uri: string) => boolean | undefined;
1104
+ uriHas: (_uri: string) => boolean;
1105
+ uriSet: (_uri: string, item: boolean) => void;
1106
+ pathDelete: (path: string) => boolean;
1107
+ pathGet: (path: string) => boolean | undefined;
1108
+ pathHas: (path: string) => boolean | undefined;
1109
+ pathSet: (path: string, item: boolean) => void;
1110
+ };
1106
1111
  dispose: () => void;
1107
- } | undefined;
1112
+ };
1108
1113
  } | undefined>;
1109
1114
  getInferredProject: () => Promise<{
1110
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
1115
+ context: import("./project").ProjectContext;
1116
+ tsConfig: path.PosixPath | ts.CompilerOptions;
1111
1117
  scripts: {
1112
1118
  clear: () => void;
1113
1119
  values: () => IterableIterator<{
1120
+ snapshot: ts.IScriptSnapshot;
1114
1121
  version: number;
1115
- fileName: string;
1116
- snapshot: ts.IScriptSnapshot | undefined;
1117
- snapshotVersion: number | undefined;
1118
- }>;
1122
+ } | undefined>;
1119
1123
  uriDelete: (_uri: string) => boolean;
1120
1124
  uriGet: (_uri: string) => {
1125
+ snapshot: ts.IScriptSnapshot;
1121
1126
  version: number;
1122
- fileName: string;
1123
- snapshot: ts.IScriptSnapshot | undefined;
1124
- snapshotVersion: number | undefined;
1125
1127
  } | undefined;
1126
1128
  uriHas: (_uri: string) => boolean;
1127
1129
  uriSet: (_uri: string, item: {
1130
+ snapshot: ts.IScriptSnapshot;
1128
1131
  version: number;
1129
- fileName: string;
1130
- snapshot: ts.IScriptSnapshot | undefined;
1131
- snapshotVersion: number | undefined;
1132
- }) => void;
1132
+ } | undefined) => void;
1133
1133
  pathDelete: (path: string) => boolean;
1134
1134
  pathGet: (path: string) => {
1135
+ snapshot: ts.IScriptSnapshot;
1135
1136
  version: number;
1136
- fileName: string;
1137
- snapshot: ts.IScriptSnapshot | undefined;
1138
- snapshotVersion: number | undefined;
1139
1137
  } | undefined;
1140
1138
  pathHas: (path: string) => {
1139
+ snapshot: ts.IScriptSnapshot;
1141
1140
  version: number;
1142
- fileName: string;
1143
- snapshot: ts.IScriptSnapshot | undefined;
1144
- snapshotVersion: number | undefined;
1145
1141
  } | undefined;
1146
1142
  pathSet: (path: string, item: {
1143
+ snapshot: ts.IScriptSnapshot;
1147
1144
  version: number;
1148
- fileName: string;
1149
- snapshot: ts.IScriptSnapshot | undefined;
1150
- snapshotVersion: number | undefined;
1151
- }) => void;
1145
+ } | undefined) => void;
1152
1146
  };
1153
- languageServiceHost: import("@volar/language-core").LanguageServiceHost;
1147
+ languageHost: import("@volar/language-service").TypeScriptLanguageHost;
1154
1148
  getLanguageService: () => {
1155
- triggerCharacters: string[];
1156
- autoFormatTriggerCharacters: string[];
1157
- signatureHelpTriggerCharacters: string[];
1158
- signatureHelpRetriggerCharacters: string[];
1149
+ getTriggerCharacters: () => string[];
1150
+ getAutoFormatTriggerCharacters: () => string[];
1151
+ getSignatureHelpTriggerCharacters: () => string[];
1152
+ getSignatureHelpRetriggerCharacters: () => string[];
1159
1153
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1160
1154
  ch: string;
1161
1155
  position: vscode.Position;
@@ -1201,14 +1195,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
1201
1195
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1202
1196
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1203
1197
  };
1204
- dispose: () => void | undefined;
1205
- context: import("@volar/language-service").ServiceContext;
1198
+ dispose: () => void;
1199
+ context: import("@volar/language-service").ServiceContext<any>;
1206
1200
  };
1207
1201
  getLanguageServiceDontCreate: () => {
1208
- triggerCharacters: string[];
1209
- autoFormatTriggerCharacters: string[];
1210
- signatureHelpTriggerCharacters: string[];
1211
- signatureHelpRetriggerCharacters: string[];
1202
+ getTriggerCharacters: () => string[];
1203
+ getAutoFormatTriggerCharacters: () => string[];
1204
+ getSignatureHelpTriggerCharacters: () => string[];
1205
+ getSignatureHelpRetriggerCharacters: () => string[];
1212
1206
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1213
1207
  ch: string;
1214
1208
  position: vscode.Position;
@@ -1254,63 +1248,64 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
1254
1248
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1255
1249
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1256
1250
  };
1257
- dispose: () => void | undefined;
1258
- context: import("@volar/language-service").ServiceContext;
1251
+ dispose: () => void;
1252
+ context: import("@volar/language-service").ServiceContext<any>;
1259
1253
  } | undefined;
1260
1254
  getParsedCommandLine: () => ts.ParsedCommandLine;
1261
1255
  tryAddFile: (fileName: string) => void;
1256
+ askedFiles: {
1257
+ clear: () => void;
1258
+ values: () => IterableIterator<boolean>;
1259
+ uriDelete: (_uri: string) => boolean;
1260
+ uriGet: (_uri: string) => boolean | undefined;
1261
+ uriHas: (_uri: string) => boolean;
1262
+ uriSet: (_uri: string, item: boolean) => void;
1263
+ pathDelete: (path: string) => boolean;
1264
+ pathGet: (path: string) => boolean | undefined;
1265
+ pathHas: (path: string) => boolean | undefined;
1266
+ pathSet: (path: string, item: boolean) => void;
1267
+ };
1262
1268
  dispose: () => void;
1263
1269
  }>;
1264
1270
  getInferredProjectDontCreate: () => Promise<{
1265
- tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
1271
+ context: import("./project").ProjectContext;
1272
+ tsConfig: path.PosixPath | ts.CompilerOptions;
1266
1273
  scripts: {
1267
1274
  clear: () => void;
1268
1275
  values: () => IterableIterator<{
1276
+ snapshot: ts.IScriptSnapshot;
1269
1277
  version: number;
1270
- fileName: string;
1271
- snapshot: ts.IScriptSnapshot | undefined;
1272
- snapshotVersion: number | undefined;
1273
- }>;
1278
+ } | undefined>;
1274
1279
  uriDelete: (_uri: string) => boolean;
1275
1280
  uriGet: (_uri: string) => {
1281
+ snapshot: ts.IScriptSnapshot;
1276
1282
  version: number;
1277
- fileName: string;
1278
- snapshot: ts.IScriptSnapshot | undefined;
1279
- snapshotVersion: number | undefined;
1280
1283
  } | undefined;
1281
1284
  uriHas: (_uri: string) => boolean;
1282
1285
  uriSet: (_uri: string, item: {
1286
+ snapshot: ts.IScriptSnapshot;
1283
1287
  version: number;
1284
- fileName: string;
1285
- snapshot: ts.IScriptSnapshot | undefined;
1286
- snapshotVersion: number | undefined;
1287
- }) => void;
1288
+ } | undefined) => void;
1288
1289
  pathDelete: (path: string) => boolean;
1289
1290
  pathGet: (path: string) => {
1291
+ snapshot: ts.IScriptSnapshot;
1290
1292
  version: number;
1291
- fileName: string;
1292
- snapshot: ts.IScriptSnapshot | undefined;
1293
- snapshotVersion: number | undefined;
1294
1293
  } | undefined;
1295
1294
  pathHas: (path: string) => {
1295
+ snapshot: ts.IScriptSnapshot;
1296
1296
  version: number;
1297
- fileName: string;
1298
- snapshot: ts.IScriptSnapshot | undefined;
1299
- snapshotVersion: number | undefined;
1300
1297
  } | undefined;
1301
1298
  pathSet: (path: string, item: {
1299
+ snapshot: ts.IScriptSnapshot;
1302
1300
  version: number;
1303
- fileName: string;
1304
- snapshot: ts.IScriptSnapshot | undefined;
1305
- snapshotVersion: number | undefined;
1306
- }) => void;
1301
+ } | undefined) => void;
1307
1302
  };
1308
- languageServiceHost: import("@volar/language-core").LanguageServiceHost;
1303
+ languageHost: import("@volar/language-service").TypeScriptLanguageHost;
1309
1304
  getLanguageService: () => {
1310
- triggerCharacters: string[];
1311
- autoFormatTriggerCharacters: string[];
1312
- signatureHelpTriggerCharacters: string[];
1313
- signatureHelpRetriggerCharacters: string[];
1305
+ getTriggerCharacters: () => string[];
1306
+ getAutoFormatTriggerCharacters: () => string[];
1307
+ getSignatureHelpTriggerCharacters: () => string[];
1308
+ getSignatureHelpRetriggerCharacters: () => string[];
1314
1309
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1315
1310
  ch: string;
1316
1311
  position: vscode.Position;
@@ -1356,14 +1351,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
1356
1351
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1357
1352
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1358
1353
  };
1359
- dispose: () => void | undefined;
1360
- context: import("@volar/language-service").ServiceContext;
1354
+ dispose: () => void;
1355
+ context: import("@volar/language-service").ServiceContext<any>;
1361
1356
  };
1362
1357
  getLanguageServiceDontCreate: () => {
1363
- triggerCharacters: string[];
1364
- autoFormatTriggerCharacters: string[];
1365
- signatureHelpTriggerCharacters: string[];
1366
- signatureHelpRetriggerCharacters: string[];
1358
+ getTriggerCharacters: () => string[];
1359
+ getAutoFormatTriggerCharacters: () => string[];
1360
+ getSignatureHelpTriggerCharacters: () => string[];
1361
+ getSignatureHelpRetriggerCharacters: () => string[];
1367
1362
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1368
1363
  ch: string;
1369
1364
  position: vscode.Position;
@@ -1409,11 +1404,23 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
1409
1404
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1410
1405
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1411
1406
  };
1412
- dispose: () => void | undefined;
1413
- context: import("@volar/language-service").ServiceContext;
1407
+ dispose: () => void;
1408
+ context: import("@volar/language-service").ServiceContext<any>;
1414
1409
  } | undefined;
1415
1410
  getParsedCommandLine: () => ts.ParsedCommandLine;
1416
1411
  tryAddFile: (fileName: string) => void;
1412
+ askedFiles: {
1413
+ clear: () => void;
1414
+ values: () => IterableIterator<boolean>;
1415
+ uriDelete: (_uri: string) => boolean;
1416
+ uriGet: (_uri: string) => boolean | undefined;
1417
+ uriHas: (_uri: string) => boolean;
1418
+ uriSet: (_uri: string, item: boolean) => void;
1419
+ pathDelete: (path: string) => boolean;
1420
+ pathGet: (path: string) => boolean | undefined;
1421
+ pathHas: (path: string) => boolean | undefined;
1422
+ pathSet: (path: string, item: boolean) => void;
1423
+ };
1417
1424
  dispose: () => void;
1418
1425
  }> | undefined;
1419
1426
  reload: () => void;