@volar/language-server 1.6.9 → 1.7.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.
@@ -1,12 +1,11 @@
1
- import { ServiceEnvironment } from '@volar/language-service';
1
+ /// <reference types="typesafe-path" />
2
2
  import type * as ts from 'typescript/lib/tsserverlibrary';
3
3
  import * as vscode from 'vscode-languageserver';
4
4
  import { URI } from 'vscode-uri';
5
- import { FileSystemHost, InitializationOptions, LanguageServerPlugin } from '../types';
5
+ import { InitializationOptions, LanguageServerPlugin } from '../types';
6
6
  import { CancellationTokenHost } from './cancellationPipe';
7
7
  import { createDocuments } from './documents';
8
8
  import { ServerContext } from './server';
9
- import * as path from 'typesafe-path';
10
9
  export interface WorkspacesContext extends ServerContext {
11
10
  workspaces: {
12
11
  initParams: vscode.InitializeParams;
@@ -14,8 +13,6 @@ export interface WorkspacesContext extends ServerContext {
14
13
  plugins: ReturnType<LanguageServerPlugin>[];
15
14
  ts: typeof import('typescript/lib/tsserverlibrary') | undefined;
16
15
  tsLocalized: ts.MapLike<string> | undefined;
17
- fileSystemHost: FileSystemHost | undefined;
18
- configurationHost: Pick<ServiceEnvironment, 'getConfiguration' | 'onDidChangeConfiguration'> | undefined;
19
16
  documents: ReturnType<typeof createDocuments>;
20
17
  cancelTokenHost: CancellationTokenHost;
21
18
  };
@@ -27,55 +24,26 @@ export declare function createWorkspaces(context: WorkspacesContext): {
27
24
  projects: {
28
25
  clear: () => void;
29
26
  values: () => IterableIterator<Promise<{
30
- tsConfig: ts.CompilerOptions | path.PosixPath;
27
+ context: import("./project").ProjectContext;
28
+ tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
31
29
  scripts: {
32
30
  clear: () => void;
33
- values: () => IterableIterator<{
34
- version: number;
35
- fileName: string;
36
- snapshot: ts.IScriptSnapshot | undefined;
37
- snapshotVersion: number | undefined;
38
- }>;
31
+ values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
39
32
  uriDelete: (_uri: string) => boolean;
40
- uriGet: (_uri: string) => {
41
- version: number;
42
- fileName: string;
43
- snapshot: ts.IScriptSnapshot | undefined;
44
- snapshotVersion: number | undefined;
45
- } | undefined;
33
+ uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
46
34
  uriHas: (_uri: string) => boolean;
47
- uriSet: (_uri: string, item: {
48
- version: number;
49
- fileName: string;
50
- snapshot: ts.IScriptSnapshot | undefined;
51
- snapshotVersion: number | undefined;
52
- }) => void;
35
+ uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
53
36
  pathDelete: (path: string) => boolean;
54
- pathGet: (path: string) => {
55
- version: number;
56
- fileName: string;
57
- snapshot: ts.IScriptSnapshot | undefined;
58
- snapshotVersion: number | undefined;
59
- } | undefined;
60
- pathHas: (path: string) => {
61
- version: number;
62
- fileName: string;
63
- snapshot: ts.IScriptSnapshot | undefined;
64
- snapshotVersion: number | undefined;
65
- } | undefined;
66
- pathSet: (path: string, item: {
67
- version: number;
68
- fileName: string;
69
- snapshot: ts.IScriptSnapshot | undefined;
70
- snapshotVersion: number | undefined;
71
- }) => void;
37
+ pathGet: (path: string) => ts.IScriptSnapshot | undefined;
38
+ pathHas: (path: string) => ts.IScriptSnapshot | undefined;
39
+ pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
72
40
  };
73
- languageServiceHost: import("@volar/language-service").LanguageServiceHost;
41
+ languageHost: import("@volar/language-core").TypeScriptLanguageHost;
74
42
  getLanguageService: () => {
75
- triggerCharacters: string[];
76
- autoFormatTriggerCharacters: string[];
77
- signatureHelpTriggerCharacters: string[];
78
- signatureHelpRetriggerCharacters: string[];
43
+ getTriggerCharacters: () => string[];
44
+ getAutoFormatTriggerCharacters: () => string[];
45
+ getSignatureHelpTriggerCharacters: () => string[];
46
+ getSignatureHelpRetriggerCharacters: () => string[];
79
47
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
80
48
  ch: string;
81
49
  position: vscode.Position;
@@ -121,14 +89,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
121
89
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
122
90
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
123
91
  };
124
- dispose: () => void | undefined;
125
- context: import("@volar/language-service").ServiceContext;
92
+ dispose: () => void;
93
+ context: import("@volar/language-service").ServiceContext<any>;
126
94
  };
127
95
  getLanguageServiceDontCreate: () => {
128
- triggerCharacters: string[];
129
- autoFormatTriggerCharacters: string[];
130
- signatureHelpTriggerCharacters: string[];
131
- signatureHelpRetriggerCharacters: string[];
96
+ getTriggerCharacters: () => string[];
97
+ getAutoFormatTriggerCharacters: () => string[];
98
+ getSignatureHelpTriggerCharacters: () => string[];
99
+ getSignatureHelpRetriggerCharacters: () => string[];
132
100
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
133
101
  ch: string;
134
102
  position: vscode.Position;
@@ -174,64 +142,47 @@ export declare function createWorkspaces(context: WorkspacesContext): {
174
142
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
175
143
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
176
144
  };
177
- dispose: () => void | undefined;
178
- context: import("@volar/language-service").ServiceContext;
145
+ dispose: () => void;
146
+ context: import("@volar/language-service").ServiceContext<any>;
179
147
  } | undefined;
180
148
  getParsedCommandLine: () => ts.ParsedCommandLine;
181
149
  tryAddFile: (fileName: string) => void;
150
+ askedFiles: {
151
+ clear: () => void;
152
+ values: () => IterableIterator<boolean>;
153
+ uriDelete: (_uri: string) => boolean;
154
+ uriGet: (_uri: string) => boolean | undefined;
155
+ uriHas: (_uri: string) => boolean;
156
+ uriSet: (_uri: string, item: boolean) => void;
157
+ pathDelete: (path: string) => boolean;
158
+ pathGet: (path: string) => boolean | undefined;
159
+ pathHas: (path: string) => boolean | undefined;
160
+ pathSet: (path: string, item: boolean) => void;
161
+ };
182
162
  dispose: () => void;
183
163
  }>>;
184
164
  uriDelete: (_uri: string) => boolean;
185
165
  uriGet: (_uri: string) => Promise<{
186
- tsConfig: ts.CompilerOptions | path.PosixPath;
166
+ context: import("./project").ProjectContext;
167
+ tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
187
168
  scripts: {
188
169
  clear: () => void;
189
- values: () => IterableIterator<{
190
- version: number;
191
- fileName: string;
192
- snapshot: ts.IScriptSnapshot | undefined;
193
- snapshotVersion: number | undefined;
194
- }>;
170
+ values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
195
171
  uriDelete: (_uri: string) => boolean;
196
- uriGet: (_uri: string) => {
197
- version: number;
198
- fileName: string;
199
- snapshot: ts.IScriptSnapshot | undefined;
200
- snapshotVersion: number | undefined;
201
- } | undefined;
172
+ uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
202
173
  uriHas: (_uri: string) => boolean;
203
- uriSet: (_uri: string, item: {
204
- version: number;
205
- fileName: string;
206
- snapshot: ts.IScriptSnapshot | undefined;
207
- snapshotVersion: number | undefined;
208
- }) => void;
174
+ uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
209
175
  pathDelete: (path: string) => boolean;
210
- pathGet: (path: string) => {
211
- version: number;
212
- fileName: string;
213
- snapshot: ts.IScriptSnapshot | undefined;
214
- snapshotVersion: number | undefined;
215
- } | undefined;
216
- pathHas: (path: string) => {
217
- version: number;
218
- fileName: string;
219
- snapshot: ts.IScriptSnapshot | undefined;
220
- snapshotVersion: number | undefined;
221
- } | undefined;
222
- pathSet: (path: string, item: {
223
- version: number;
224
- fileName: string;
225
- snapshot: ts.IScriptSnapshot | undefined;
226
- snapshotVersion: number | undefined;
227
- }) => void;
176
+ pathGet: (path: string) => ts.IScriptSnapshot | undefined;
177
+ pathHas: (path: string) => ts.IScriptSnapshot | undefined;
178
+ pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
228
179
  };
229
- languageServiceHost: import("@volar/language-service").LanguageServiceHost;
180
+ languageHost: import("@volar/language-core").TypeScriptLanguageHost;
230
181
  getLanguageService: () => {
231
- triggerCharacters: string[];
232
- autoFormatTriggerCharacters: string[];
233
- signatureHelpTriggerCharacters: string[];
234
- signatureHelpRetriggerCharacters: string[];
182
+ getTriggerCharacters: () => string[];
183
+ getAutoFormatTriggerCharacters: () => string[];
184
+ getSignatureHelpTriggerCharacters: () => string[];
185
+ getSignatureHelpRetriggerCharacters: () => string[];
235
186
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
236
187
  ch: string;
237
188
  position: vscode.Position;
@@ -277,14 +228,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
277
228
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
278
229
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
279
230
  };
280
- dispose: () => void | undefined;
281
- context: import("@volar/language-service").ServiceContext;
231
+ dispose: () => void;
232
+ context: import("@volar/language-service").ServiceContext<any>;
282
233
  };
283
234
  getLanguageServiceDontCreate: () => {
284
- triggerCharacters: string[];
285
- autoFormatTriggerCharacters: string[];
286
- signatureHelpTriggerCharacters: string[];
287
- signatureHelpRetriggerCharacters: string[];
235
+ getTriggerCharacters: () => string[];
236
+ getAutoFormatTriggerCharacters: () => string[];
237
+ getSignatureHelpTriggerCharacters: () => string[];
238
+ getSignatureHelpRetriggerCharacters: () => string[];
288
239
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
289
240
  ch: string;
290
241
  position: vscode.Position;
@@ -330,64 +281,47 @@ export declare function createWorkspaces(context: WorkspacesContext): {
330
281
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
331
282
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
332
283
  };
333
- dispose: () => void | undefined;
334
- context: import("@volar/language-service").ServiceContext;
284
+ dispose: () => void;
285
+ context: import("@volar/language-service").ServiceContext<any>;
335
286
  } | undefined;
336
287
  getParsedCommandLine: () => ts.ParsedCommandLine;
337
288
  tryAddFile: (fileName: string) => void;
289
+ askedFiles: {
290
+ clear: () => void;
291
+ values: () => IterableIterator<boolean>;
292
+ uriDelete: (_uri: string) => boolean;
293
+ uriGet: (_uri: string) => boolean | undefined;
294
+ uriHas: (_uri: string) => boolean;
295
+ uriSet: (_uri: string, item: boolean) => void;
296
+ pathDelete: (path: string) => boolean;
297
+ pathGet: (path: string) => boolean | undefined;
298
+ pathHas: (path: string) => boolean | undefined;
299
+ pathSet: (path: string, item: boolean) => void;
300
+ };
338
301
  dispose: () => void;
339
302
  }> | undefined;
340
303
  uriHas: (_uri: string) => boolean;
341
304
  uriSet: (_uri: string, item: Promise<{
342
- tsConfig: ts.CompilerOptions | path.PosixPath;
305
+ context: import("./project").ProjectContext;
306
+ tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
343
307
  scripts: {
344
308
  clear: () => void;
345
- values: () => IterableIterator<{
346
- version: number;
347
- fileName: string;
348
- snapshot: ts.IScriptSnapshot | undefined;
349
- snapshotVersion: number | undefined;
350
- }>;
309
+ values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
351
310
  uriDelete: (_uri: string) => boolean;
352
- uriGet: (_uri: string) => {
353
- version: number;
354
- fileName: string;
355
- snapshot: ts.IScriptSnapshot | undefined;
356
- snapshotVersion: number | undefined;
357
- } | undefined;
311
+ uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
358
312
  uriHas: (_uri: string) => boolean;
359
- uriSet: (_uri: string, item: {
360
- version: number;
361
- fileName: string;
362
- snapshot: ts.IScriptSnapshot | undefined;
363
- snapshotVersion: number | undefined;
364
- }) => void;
313
+ uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
365
314
  pathDelete: (path: string) => boolean;
366
- pathGet: (path: string) => {
367
- version: number;
368
- fileName: string;
369
- snapshot: ts.IScriptSnapshot | undefined;
370
- snapshotVersion: number | undefined;
371
- } | undefined;
372
- pathHas: (path: string) => {
373
- version: number;
374
- fileName: string;
375
- snapshot: ts.IScriptSnapshot | undefined;
376
- snapshotVersion: number | undefined;
377
- } | undefined;
378
- pathSet: (path: string, item: {
379
- version: number;
380
- fileName: string;
381
- snapshot: ts.IScriptSnapshot | undefined;
382
- snapshotVersion: number | undefined;
383
- }) => void;
315
+ pathGet: (path: string) => ts.IScriptSnapshot | undefined;
316
+ pathHas: (path: string) => ts.IScriptSnapshot | undefined;
317
+ pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
384
318
  };
385
- languageServiceHost: import("@volar/language-service").LanguageServiceHost;
319
+ languageHost: import("@volar/language-core").TypeScriptLanguageHost;
386
320
  getLanguageService: () => {
387
- triggerCharacters: string[];
388
- autoFormatTriggerCharacters: string[];
389
- signatureHelpTriggerCharacters: string[];
390
- signatureHelpRetriggerCharacters: string[];
321
+ getTriggerCharacters: () => string[];
322
+ getAutoFormatTriggerCharacters: () => string[];
323
+ getSignatureHelpTriggerCharacters: () => string[];
324
+ getSignatureHelpRetriggerCharacters: () => string[];
391
325
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
392
326
  ch: string;
393
327
  position: vscode.Position;
@@ -433,14 +367,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
433
367
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
434
368
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
435
369
  };
436
- dispose: () => void | undefined;
437
- context: import("@volar/language-service").ServiceContext;
370
+ dispose: () => void;
371
+ context: import("@volar/language-service").ServiceContext<any>;
438
372
  };
439
373
  getLanguageServiceDontCreate: () => {
440
- triggerCharacters: string[];
441
- autoFormatTriggerCharacters: string[];
442
- signatureHelpTriggerCharacters: string[];
443
- signatureHelpRetriggerCharacters: string[];
374
+ getTriggerCharacters: () => string[];
375
+ getAutoFormatTriggerCharacters: () => string[];
376
+ getSignatureHelpTriggerCharacters: () => string[];
377
+ getSignatureHelpRetriggerCharacters: () => string[];
444
378
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
445
379
  ch: string;
446
380
  position: vscode.Position;
@@ -486,64 +420,47 @@ export declare function createWorkspaces(context: WorkspacesContext): {
486
420
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
487
421
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
488
422
  };
489
- dispose: () => void | undefined;
490
- context: import("@volar/language-service").ServiceContext;
423
+ dispose: () => void;
424
+ context: import("@volar/language-service").ServiceContext<any>;
491
425
  } | undefined;
492
426
  getParsedCommandLine: () => ts.ParsedCommandLine;
493
427
  tryAddFile: (fileName: string) => void;
428
+ askedFiles: {
429
+ clear: () => void;
430
+ values: () => IterableIterator<boolean>;
431
+ uriDelete: (_uri: string) => boolean;
432
+ uriGet: (_uri: string) => boolean | undefined;
433
+ uriHas: (_uri: string) => boolean;
434
+ uriSet: (_uri: string, item: boolean) => void;
435
+ pathDelete: (path: string) => boolean;
436
+ pathGet: (path: string) => boolean | undefined;
437
+ pathHas: (path: string) => boolean | undefined;
438
+ pathSet: (path: string, item: boolean) => void;
439
+ };
494
440
  dispose: () => void;
495
441
  }>) => void;
496
442
  pathDelete: (path: string) => boolean;
497
443
  pathGet: (path: string) => Promise<{
498
- tsConfig: ts.CompilerOptions | path.PosixPath;
444
+ context: import("./project").ProjectContext;
445
+ tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
499
446
  scripts: {
500
447
  clear: () => void;
501
- values: () => IterableIterator<{
502
- version: number;
503
- fileName: string;
504
- snapshot: ts.IScriptSnapshot | undefined;
505
- snapshotVersion: number | undefined;
506
- }>;
448
+ values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
507
449
  uriDelete: (_uri: string) => boolean;
508
- uriGet: (_uri: string) => {
509
- version: number;
510
- fileName: string;
511
- snapshot: ts.IScriptSnapshot | undefined;
512
- snapshotVersion: number | undefined;
513
- } | undefined;
450
+ uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
514
451
  uriHas: (_uri: string) => boolean;
515
- uriSet: (_uri: string, item: {
516
- version: number;
517
- fileName: string;
518
- snapshot: ts.IScriptSnapshot | undefined;
519
- snapshotVersion: number | undefined;
520
- }) => void;
452
+ uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
521
453
  pathDelete: (path: string) => boolean;
522
- pathGet: (path: string) => {
523
- version: number;
524
- fileName: string;
525
- snapshot: ts.IScriptSnapshot | undefined;
526
- snapshotVersion: number | undefined;
527
- } | undefined;
528
- pathHas: (path: string) => {
529
- version: number;
530
- fileName: string;
531
- snapshot: ts.IScriptSnapshot | undefined;
532
- snapshotVersion: number | undefined;
533
- } | undefined;
534
- pathSet: (path: string, item: {
535
- version: number;
536
- fileName: string;
537
- snapshot: ts.IScriptSnapshot | undefined;
538
- snapshotVersion: number | undefined;
539
- }) => void;
454
+ pathGet: (path: string) => ts.IScriptSnapshot | undefined;
455
+ pathHas: (path: string) => ts.IScriptSnapshot | undefined;
456
+ pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
540
457
  };
541
- languageServiceHost: import("@volar/language-service").LanguageServiceHost;
458
+ languageHost: import("@volar/language-core").TypeScriptLanguageHost;
542
459
  getLanguageService: () => {
543
- triggerCharacters: string[];
544
- autoFormatTriggerCharacters: string[];
545
- signatureHelpTriggerCharacters: string[];
546
- signatureHelpRetriggerCharacters: string[];
460
+ getTriggerCharacters: () => string[];
461
+ getAutoFormatTriggerCharacters: () => string[];
462
+ getSignatureHelpTriggerCharacters: () => string[];
463
+ getSignatureHelpRetriggerCharacters: () => string[];
547
464
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
548
465
  ch: string;
549
466
  position: vscode.Position;
@@ -589,14 +506,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
589
506
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
590
507
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
591
508
  };
592
- dispose: () => void | undefined;
593
- context: import("@volar/language-service").ServiceContext;
509
+ dispose: () => void;
510
+ context: import("@volar/language-service").ServiceContext<any>;
594
511
  };
595
512
  getLanguageServiceDontCreate: () => {
596
- triggerCharacters: string[];
597
- autoFormatTriggerCharacters: string[];
598
- signatureHelpTriggerCharacters: string[];
599
- signatureHelpRetriggerCharacters: string[];
513
+ getTriggerCharacters: () => string[];
514
+ getAutoFormatTriggerCharacters: () => string[];
515
+ getSignatureHelpTriggerCharacters: () => string[];
516
+ getSignatureHelpRetriggerCharacters: () => string[];
600
517
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
601
518
  ch: string;
602
519
  position: vscode.Position;
@@ -642,63 +559,46 @@ export declare function createWorkspaces(context: WorkspacesContext): {
642
559
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
643
560
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
644
561
  };
645
- dispose: () => void | undefined;
646
- context: import("@volar/language-service").ServiceContext;
562
+ dispose: () => void;
563
+ context: import("@volar/language-service").ServiceContext<any>;
647
564
  } | undefined;
648
565
  getParsedCommandLine: () => ts.ParsedCommandLine;
649
566
  tryAddFile: (fileName: string) => void;
567
+ askedFiles: {
568
+ clear: () => void;
569
+ values: () => IterableIterator<boolean>;
570
+ uriDelete: (_uri: string) => boolean;
571
+ uriGet: (_uri: string) => boolean | undefined;
572
+ uriHas: (_uri: string) => boolean;
573
+ uriSet: (_uri: string, item: boolean) => void;
574
+ pathDelete: (path: string) => boolean;
575
+ pathGet: (path: string) => boolean | undefined;
576
+ pathHas: (path: string) => boolean | undefined;
577
+ pathSet: (path: string, item: boolean) => void;
578
+ };
650
579
  dispose: () => void;
651
580
  }> | undefined;
652
581
  pathHas: (path: string) => Promise<{
653
- tsConfig: ts.CompilerOptions | path.PosixPath;
582
+ context: import("./project").ProjectContext;
583
+ tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
654
584
  scripts: {
655
585
  clear: () => void;
656
- values: () => IterableIterator<{
657
- version: number;
658
- fileName: string;
659
- snapshot: ts.IScriptSnapshot | undefined;
660
- snapshotVersion: number | undefined;
661
- }>;
586
+ values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
662
587
  uriDelete: (_uri: string) => boolean;
663
- uriGet: (_uri: string) => {
664
- version: number;
665
- fileName: string;
666
- snapshot: ts.IScriptSnapshot | undefined;
667
- snapshotVersion: number | undefined;
668
- } | undefined;
588
+ uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
669
589
  uriHas: (_uri: string) => boolean;
670
- uriSet: (_uri: string, item: {
671
- version: number;
672
- fileName: string;
673
- snapshot: ts.IScriptSnapshot | undefined;
674
- snapshotVersion: number | undefined;
675
- }) => void;
590
+ uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
676
591
  pathDelete: (path: string) => boolean;
677
- pathGet: (path: string) => {
678
- version: number;
679
- fileName: string;
680
- snapshot: ts.IScriptSnapshot | undefined;
681
- snapshotVersion: number | undefined;
682
- } | undefined;
683
- pathHas: (path: string) => {
684
- version: number;
685
- fileName: string;
686
- snapshot: ts.IScriptSnapshot | undefined;
687
- snapshotVersion: number | undefined;
688
- } | undefined;
689
- pathSet: (path: string, item: {
690
- version: number;
691
- fileName: string;
692
- snapshot: ts.IScriptSnapshot | undefined;
693
- snapshotVersion: number | undefined;
694
- }) => void;
592
+ pathGet: (path: string) => ts.IScriptSnapshot | undefined;
593
+ pathHas: (path: string) => ts.IScriptSnapshot | undefined;
594
+ pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
695
595
  };
696
- languageServiceHost: import("@volar/language-service").LanguageServiceHost;
596
+ languageHost: import("@volar/language-core").TypeScriptLanguageHost;
697
597
  getLanguageService: () => {
698
- triggerCharacters: string[];
699
- autoFormatTriggerCharacters: string[];
700
- signatureHelpTriggerCharacters: string[];
701
- signatureHelpRetriggerCharacters: string[];
598
+ getTriggerCharacters: () => string[];
599
+ getAutoFormatTriggerCharacters: () => string[];
600
+ getSignatureHelpTriggerCharacters: () => string[];
601
+ getSignatureHelpRetriggerCharacters: () => string[];
702
602
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
703
603
  ch: string;
704
604
  position: vscode.Position;
@@ -744,14 +644,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
744
644
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
745
645
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
746
646
  };
747
- dispose: () => void | undefined;
748
- context: import("@volar/language-service").ServiceContext;
647
+ dispose: () => void;
648
+ context: import("@volar/language-service").ServiceContext<any>;
749
649
  };
750
650
  getLanguageServiceDontCreate: () => {
751
- triggerCharacters: string[];
752
- autoFormatTriggerCharacters: string[];
753
- signatureHelpTriggerCharacters: string[];
754
- signatureHelpRetriggerCharacters: string[];
651
+ getTriggerCharacters: () => string[];
652
+ getAutoFormatTriggerCharacters: () => string[];
653
+ getSignatureHelpTriggerCharacters: () => string[];
654
+ getSignatureHelpRetriggerCharacters: () => string[];
755
655
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
756
656
  ch: string;
757
657
  position: vscode.Position;
@@ -797,63 +697,46 @@ export declare function createWorkspaces(context: WorkspacesContext): {
797
697
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
798
698
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
799
699
  };
800
- dispose: () => void | undefined;
801
- context: import("@volar/language-service").ServiceContext;
700
+ dispose: () => void;
701
+ context: import("@volar/language-service").ServiceContext<any>;
802
702
  } | undefined;
803
703
  getParsedCommandLine: () => ts.ParsedCommandLine;
804
704
  tryAddFile: (fileName: string) => void;
705
+ askedFiles: {
706
+ clear: () => void;
707
+ values: () => IterableIterator<boolean>;
708
+ uriDelete: (_uri: string) => boolean;
709
+ uriGet: (_uri: string) => boolean | undefined;
710
+ uriHas: (_uri: string) => boolean;
711
+ uriSet: (_uri: string, item: boolean) => void;
712
+ pathDelete: (path: string) => boolean;
713
+ pathGet: (path: string) => boolean | undefined;
714
+ pathHas: (path: string) => boolean | undefined;
715
+ pathSet: (path: string, item: boolean) => void;
716
+ };
805
717
  dispose: () => void;
806
718
  }> | undefined;
807
719
  pathSet: (path: string, item: Promise<{
808
- tsConfig: ts.CompilerOptions | path.PosixPath;
720
+ context: import("./project").ProjectContext;
721
+ tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
809
722
  scripts: {
810
723
  clear: () => void;
811
- values: () => IterableIterator<{
812
- version: number;
813
- fileName: string;
814
- snapshot: ts.IScriptSnapshot | undefined;
815
- snapshotVersion: number | undefined;
816
- }>;
724
+ values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
817
725
  uriDelete: (_uri: string) => boolean;
818
- uriGet: (_uri: string) => {
819
- version: number;
820
- fileName: string;
821
- snapshot: ts.IScriptSnapshot | undefined;
822
- snapshotVersion: number | undefined;
823
- } | undefined;
726
+ uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
824
727
  uriHas: (_uri: string) => boolean;
825
- uriSet: (_uri: string, item: {
826
- version: number;
827
- fileName: string;
828
- snapshot: ts.IScriptSnapshot | undefined;
829
- snapshotVersion: number | undefined;
830
- }) => void;
728
+ uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
831
729
  pathDelete: (path: string) => boolean;
832
- pathGet: (path: string) => {
833
- version: number;
834
- fileName: string;
835
- snapshot: ts.IScriptSnapshot | undefined;
836
- snapshotVersion: number | undefined;
837
- } | undefined;
838
- pathHas: (path: string) => {
839
- version: number;
840
- fileName: string;
841
- snapshot: ts.IScriptSnapshot | undefined;
842
- snapshotVersion: number | undefined;
843
- } | undefined;
844
- pathSet: (path: string, item: {
845
- version: number;
846
- fileName: string;
847
- snapshot: ts.IScriptSnapshot | undefined;
848
- snapshotVersion: number | undefined;
849
- }) => void;
730
+ pathGet: (path: string) => ts.IScriptSnapshot | undefined;
731
+ pathHas: (path: string) => ts.IScriptSnapshot | undefined;
732
+ pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
850
733
  };
851
- languageServiceHost: import("@volar/language-service").LanguageServiceHost;
734
+ languageHost: import("@volar/language-core").TypeScriptLanguageHost;
852
735
  getLanguageService: () => {
853
- triggerCharacters: string[];
854
- autoFormatTriggerCharacters: string[];
855
- signatureHelpTriggerCharacters: string[];
856
- signatureHelpRetriggerCharacters: string[];
736
+ getTriggerCharacters: () => string[];
737
+ getAutoFormatTriggerCharacters: () => string[];
738
+ getSignatureHelpTriggerCharacters: () => string[];
739
+ getSignatureHelpRetriggerCharacters: () => string[];
857
740
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
858
741
  ch: string;
859
742
  position: vscode.Position;
@@ -899,14 +782,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
899
782
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
900
783
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
901
784
  };
902
- dispose: () => void | undefined;
903
- context: import("@volar/language-service").ServiceContext;
785
+ dispose: () => void;
786
+ context: import("@volar/language-service").ServiceContext<any>;
904
787
  };
905
788
  getLanguageServiceDontCreate: () => {
906
- triggerCharacters: string[];
907
- autoFormatTriggerCharacters: string[];
908
- signatureHelpTriggerCharacters: string[];
909
- signatureHelpRetriggerCharacters: string[];
789
+ getTriggerCharacters: () => string[];
790
+ getAutoFormatTriggerCharacters: () => string[];
791
+ getSignatureHelpTriggerCharacters: () => string[];
792
+ getSignatureHelpRetriggerCharacters: () => string[];
910
793
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
911
794
  ch: string;
912
795
  position: vscode.Position;
@@ -952,67 +835,49 @@ export declare function createWorkspaces(context: WorkspacesContext): {
952
835
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
953
836
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
954
837
  };
955
- dispose: () => void | undefined;
956
- context: import("@volar/language-service").ServiceContext;
838
+ dispose: () => void;
839
+ context: import("@volar/language-service").ServiceContext<any>;
957
840
  } | undefined;
958
841
  getParsedCommandLine: () => ts.ParsedCommandLine;
959
842
  tryAddFile: (fileName: string) => void;
843
+ askedFiles: {
844
+ clear: () => void;
845
+ values: () => IterableIterator<boolean>;
846
+ uriDelete: (_uri: string) => boolean;
847
+ uriGet: (_uri: string) => boolean | undefined;
848
+ uriHas: (_uri: string) => boolean;
849
+ uriSet: (_uri: string, item: boolean) => void;
850
+ pathDelete: (path: string) => boolean;
851
+ pathGet: (path: string) => boolean | undefined;
852
+ pathHas: (path: string) => boolean | undefined;
853
+ pathSet: (path: string, item: boolean) => void;
854
+ };
960
855
  dispose: () => void;
961
856
  }>) => void;
962
857
  };
963
- documentRegistry: ts.DocumentRegistry | undefined;
964
858
  getProjectAndTsConfig: (uri: string) => Promise<{
965
859
  tsconfig: string;
966
860
  project: {
967
- tsConfig: ts.CompilerOptions | path.PosixPath;
861
+ context: import("./project").ProjectContext;
862
+ tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
968
863
  scripts: {
969
864
  clear: () => void;
970
- values: () => IterableIterator<{
971
- version: number;
972
- fileName: string;
973
- snapshot: ts.IScriptSnapshot | undefined;
974
- snapshotVersion: number | undefined;
975
- }>;
865
+ values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
976
866
  uriDelete: (_uri: string) => boolean;
977
- uriGet: (_uri: string) => {
978
- version: number;
979
- fileName: string;
980
- snapshot: ts.IScriptSnapshot | undefined;
981
- snapshotVersion: number | undefined;
982
- } | undefined;
867
+ uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
983
868
  uriHas: (_uri: string) => boolean;
984
- uriSet: (_uri: string, item: {
985
- version: number;
986
- fileName: string;
987
- snapshot: ts.IScriptSnapshot | undefined;
988
- snapshotVersion: number | undefined;
989
- }) => void;
869
+ uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
990
870
  pathDelete: (path: string) => boolean;
991
- pathGet: (path: string) => {
992
- version: number;
993
- fileName: string;
994
- snapshot: ts.IScriptSnapshot | undefined;
995
- snapshotVersion: number | undefined;
996
- } | undefined;
997
- pathHas: (path: string) => {
998
- version: number;
999
- fileName: string;
1000
- snapshot: ts.IScriptSnapshot | undefined;
1001
- snapshotVersion: number | undefined;
1002
- } | undefined;
1003
- pathSet: (path: string, item: {
1004
- version: number;
1005
- fileName: string;
1006
- snapshot: ts.IScriptSnapshot | undefined;
1007
- snapshotVersion: number | undefined;
1008
- }) => void;
871
+ pathGet: (path: string) => ts.IScriptSnapshot | undefined;
872
+ pathHas: (path: string) => ts.IScriptSnapshot | undefined;
873
+ pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
1009
874
  };
1010
- languageServiceHost: import("@volar/language-service").LanguageServiceHost;
875
+ languageHost: import("@volar/language-core").TypeScriptLanguageHost;
1011
876
  getLanguageService: () => {
1012
- triggerCharacters: string[];
1013
- autoFormatTriggerCharacters: string[];
1014
- signatureHelpTriggerCharacters: string[];
1015
- signatureHelpRetriggerCharacters: string[];
877
+ getTriggerCharacters: () => string[];
878
+ getAutoFormatTriggerCharacters: () => string[];
879
+ getSignatureHelpTriggerCharacters: () => string[];
880
+ getSignatureHelpRetriggerCharacters: () => string[];
1016
881
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1017
882
  ch: string;
1018
883
  position: vscode.Position;
@@ -1058,14 +923,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1058
923
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1059
924
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1060
925
  };
1061
- dispose: () => void | undefined;
1062
- context: import("@volar/language-service").ServiceContext;
926
+ dispose: () => void;
927
+ context: import("@volar/language-service").ServiceContext<any>;
1063
928
  };
1064
929
  getLanguageServiceDontCreate: () => {
1065
- triggerCharacters: string[];
1066
- autoFormatTriggerCharacters: string[];
1067
- signatureHelpTriggerCharacters: string[];
1068
- signatureHelpRetriggerCharacters: string[];
930
+ getTriggerCharacters: () => string[];
931
+ getAutoFormatTriggerCharacters: () => string[];
932
+ getSignatureHelpTriggerCharacters: () => string[];
933
+ getSignatureHelpRetriggerCharacters: () => string[];
1069
934
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1070
935
  ch: string;
1071
936
  position: vscode.Position;
@@ -1111,64 +976,47 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1111
976
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1112
977
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1113
978
  };
1114
- dispose: () => void | undefined;
1115
- context: import("@volar/language-service").ServiceContext;
979
+ dispose: () => void;
980
+ context: import("@volar/language-service").ServiceContext<any>;
1116
981
  } | undefined;
1117
982
  getParsedCommandLine: () => ts.ParsedCommandLine;
1118
983
  tryAddFile: (fileName: string) => void;
984
+ askedFiles: {
985
+ clear: () => void;
986
+ values: () => IterableIterator<boolean>;
987
+ uriDelete: (_uri: string) => boolean;
988
+ uriGet: (_uri: string) => boolean | undefined;
989
+ uriHas: (_uri: string) => boolean;
990
+ uriSet: (_uri: string, item: boolean) => void;
991
+ pathDelete: (path: string) => boolean;
992
+ pathGet: (path: string) => boolean | undefined;
993
+ pathHas: (path: string) => boolean | undefined;
994
+ pathSet: (path: string, item: boolean) => void;
995
+ };
1119
996
  dispose: () => void;
1120
- } | undefined;
997
+ };
1121
998
  } | undefined>;
1122
999
  getInferredProject: () => Promise<{
1123
- tsConfig: ts.CompilerOptions | path.PosixPath;
1000
+ context: import("./project").ProjectContext;
1001
+ tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
1124
1002
  scripts: {
1125
1003
  clear: () => void;
1126
- values: () => IterableIterator<{
1127
- version: number;
1128
- fileName: string;
1129
- snapshot: ts.IScriptSnapshot | undefined;
1130
- snapshotVersion: number | undefined;
1131
- }>;
1004
+ values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
1132
1005
  uriDelete: (_uri: string) => boolean;
1133
- uriGet: (_uri: string) => {
1134
- version: number;
1135
- fileName: string;
1136
- snapshot: ts.IScriptSnapshot | undefined;
1137
- snapshotVersion: number | undefined;
1138
- } | undefined;
1006
+ uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
1139
1007
  uriHas: (_uri: string) => boolean;
1140
- uriSet: (_uri: string, item: {
1141
- version: number;
1142
- fileName: string;
1143
- snapshot: ts.IScriptSnapshot | undefined;
1144
- snapshotVersion: number | undefined;
1145
- }) => void;
1008
+ uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
1146
1009
  pathDelete: (path: string) => boolean;
1147
- pathGet: (path: string) => {
1148
- version: number;
1149
- fileName: string;
1150
- snapshot: ts.IScriptSnapshot | undefined;
1151
- snapshotVersion: number | undefined;
1152
- } | undefined;
1153
- pathHas: (path: string) => {
1154
- version: number;
1155
- fileName: string;
1156
- snapshot: ts.IScriptSnapshot | undefined;
1157
- snapshotVersion: number | undefined;
1158
- } | undefined;
1159
- pathSet: (path: string, item: {
1160
- version: number;
1161
- fileName: string;
1162
- snapshot: ts.IScriptSnapshot | undefined;
1163
- snapshotVersion: number | undefined;
1164
- }) => void;
1010
+ pathGet: (path: string) => ts.IScriptSnapshot | undefined;
1011
+ pathHas: (path: string) => ts.IScriptSnapshot | undefined;
1012
+ pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
1165
1013
  };
1166
- languageServiceHost: import("@volar/language-service").LanguageServiceHost;
1014
+ languageHost: import("@volar/language-core").TypeScriptLanguageHost;
1167
1015
  getLanguageService: () => {
1168
- triggerCharacters: string[];
1169
- autoFormatTriggerCharacters: string[];
1170
- signatureHelpTriggerCharacters: string[];
1171
- signatureHelpRetriggerCharacters: string[];
1016
+ getTriggerCharacters: () => string[];
1017
+ getAutoFormatTriggerCharacters: () => string[];
1018
+ getSignatureHelpTriggerCharacters: () => string[];
1019
+ getSignatureHelpRetriggerCharacters: () => string[];
1172
1020
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1173
1021
  ch: string;
1174
1022
  position: vscode.Position;
@@ -1214,14 +1062,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1214
1062
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1215
1063
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1216
1064
  };
1217
- dispose: () => void | undefined;
1218
- context: import("@volar/language-service").ServiceContext;
1065
+ dispose: () => void;
1066
+ context: import("@volar/language-service").ServiceContext<any>;
1219
1067
  };
1220
1068
  getLanguageServiceDontCreate: () => {
1221
- triggerCharacters: string[];
1222
- autoFormatTriggerCharacters: string[];
1223
- signatureHelpTriggerCharacters: string[];
1224
- signatureHelpRetriggerCharacters: string[];
1069
+ getTriggerCharacters: () => string[];
1070
+ getAutoFormatTriggerCharacters: () => string[];
1071
+ getSignatureHelpTriggerCharacters: () => string[];
1072
+ getSignatureHelpRetriggerCharacters: () => string[];
1225
1073
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1226
1074
  ch: string;
1227
1075
  position: vscode.Position;
@@ -1267,63 +1115,46 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1267
1115
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1268
1116
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1269
1117
  };
1270
- dispose: () => void | undefined;
1271
- context: import("@volar/language-service").ServiceContext;
1118
+ dispose: () => void;
1119
+ context: import("@volar/language-service").ServiceContext<any>;
1272
1120
  } | undefined;
1273
1121
  getParsedCommandLine: () => ts.ParsedCommandLine;
1274
1122
  tryAddFile: (fileName: string) => void;
1123
+ askedFiles: {
1124
+ clear: () => void;
1125
+ values: () => IterableIterator<boolean>;
1126
+ uriDelete: (_uri: string) => boolean;
1127
+ uriGet: (_uri: string) => boolean | undefined;
1128
+ uriHas: (_uri: string) => boolean;
1129
+ uriSet: (_uri: string, item: boolean) => void;
1130
+ pathDelete: (path: string) => boolean;
1131
+ pathGet: (path: string) => boolean | undefined;
1132
+ pathHas: (path: string) => boolean | undefined;
1133
+ pathSet: (path: string, item: boolean) => void;
1134
+ };
1275
1135
  dispose: () => void;
1276
1136
  }>;
1277
1137
  getInferredProjectDontCreate: () => Promise<{
1278
- tsConfig: ts.CompilerOptions | path.PosixPath;
1138
+ context: import("./project").ProjectContext;
1139
+ tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
1279
1140
  scripts: {
1280
1141
  clear: () => void;
1281
- values: () => IterableIterator<{
1282
- version: number;
1283
- fileName: string;
1284
- snapshot: ts.IScriptSnapshot | undefined;
1285
- snapshotVersion: number | undefined;
1286
- }>;
1142
+ values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
1287
1143
  uriDelete: (_uri: string) => boolean;
1288
- uriGet: (_uri: string) => {
1289
- version: number;
1290
- fileName: string;
1291
- snapshot: ts.IScriptSnapshot | undefined;
1292
- snapshotVersion: number | undefined;
1293
- } | undefined;
1144
+ uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
1294
1145
  uriHas: (_uri: string) => boolean;
1295
- uriSet: (_uri: string, item: {
1296
- version: number;
1297
- fileName: string;
1298
- snapshot: ts.IScriptSnapshot | undefined;
1299
- snapshotVersion: number | undefined;
1300
- }) => void;
1146
+ uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
1301
1147
  pathDelete: (path: string) => boolean;
1302
- pathGet: (path: string) => {
1303
- version: number;
1304
- fileName: string;
1305
- snapshot: ts.IScriptSnapshot | undefined;
1306
- snapshotVersion: number | undefined;
1307
- } | undefined;
1308
- pathHas: (path: string) => {
1309
- version: number;
1310
- fileName: string;
1311
- snapshot: ts.IScriptSnapshot | undefined;
1312
- snapshotVersion: number | undefined;
1313
- } | undefined;
1314
- pathSet: (path: string, item: {
1315
- version: number;
1316
- fileName: string;
1317
- snapshot: ts.IScriptSnapshot | undefined;
1318
- snapshotVersion: number | undefined;
1319
- }) => void;
1148
+ pathGet: (path: string) => ts.IScriptSnapshot | undefined;
1149
+ pathHas: (path: string) => ts.IScriptSnapshot | undefined;
1150
+ pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
1320
1151
  };
1321
- languageServiceHost: import("@volar/language-service").LanguageServiceHost;
1152
+ languageHost: import("@volar/language-core").TypeScriptLanguageHost;
1322
1153
  getLanguageService: () => {
1323
- triggerCharacters: string[];
1324
- autoFormatTriggerCharacters: string[];
1325
- signatureHelpTriggerCharacters: string[];
1326
- signatureHelpRetriggerCharacters: string[];
1154
+ getTriggerCharacters: () => string[];
1155
+ getAutoFormatTriggerCharacters: () => string[];
1156
+ getSignatureHelpTriggerCharacters: () => string[];
1157
+ getSignatureHelpRetriggerCharacters: () => string[];
1327
1158
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1328
1159
  ch: string;
1329
1160
  position: vscode.Position;
@@ -1369,14 +1200,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1369
1200
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1370
1201
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1371
1202
  };
1372
- dispose: () => void | undefined;
1373
- context: import("@volar/language-service").ServiceContext;
1203
+ dispose: () => void;
1204
+ context: import("@volar/language-service").ServiceContext<any>;
1374
1205
  };
1375
1206
  getLanguageServiceDontCreate: () => {
1376
- triggerCharacters: string[];
1377
- autoFormatTriggerCharacters: string[];
1378
- signatureHelpTriggerCharacters: string[];
1379
- signatureHelpRetriggerCharacters: string[];
1207
+ getTriggerCharacters: () => string[];
1208
+ getAutoFormatTriggerCharacters: () => string[];
1209
+ getSignatureHelpTriggerCharacters: () => string[];
1210
+ getSignatureHelpRetriggerCharacters: () => string[];
1380
1211
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1381
1212
  ch: string;
1382
1213
  position: vscode.Position;
@@ -1422,11 +1253,23 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1422
1253
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1423
1254
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1424
1255
  };
1425
- dispose: () => void | undefined;
1426
- context: import("@volar/language-service").ServiceContext;
1256
+ dispose: () => void;
1257
+ context: import("@volar/language-service").ServiceContext<any>;
1427
1258
  } | undefined;
1428
1259
  getParsedCommandLine: () => ts.ParsedCommandLine;
1429
1260
  tryAddFile: (fileName: string) => void;
1261
+ askedFiles: {
1262
+ clear: () => void;
1263
+ values: () => IterableIterator<boolean>;
1264
+ uriDelete: (_uri: string) => boolean;
1265
+ uriGet: (_uri: string) => boolean | undefined;
1266
+ uriHas: (_uri: string) => boolean;
1267
+ uriSet: (_uri: string, item: boolean) => void;
1268
+ pathDelete: (path: string) => boolean;
1269
+ pathGet: (path: string) => boolean | undefined;
1270
+ pathHas: (path: string) => boolean | undefined;
1271
+ pathSet: (path: string, item: boolean) => void;
1272
+ };
1430
1273
  dispose: () => void;
1431
1274
  }> | undefined;
1432
1275
  reload: () => void;
@@ -1435,55 +1278,26 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1435
1278
  getProject: (uri: string) => Promise<{
1436
1279
  tsconfig: string;
1437
1280
  project: {
1438
- tsConfig: ts.CompilerOptions | path.PosixPath;
1281
+ context: import("./project").ProjectContext;
1282
+ tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
1439
1283
  scripts: {
1440
1284
  clear: () => void;
1441
- values: () => IterableIterator<{
1442
- version: number;
1443
- fileName: string;
1444
- snapshot: ts.IScriptSnapshot | undefined;
1445
- snapshotVersion: number | undefined;
1446
- }>;
1285
+ values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
1447
1286
  uriDelete: (_uri: string) => boolean;
1448
- uriGet: (_uri: string) => {
1449
- version: number;
1450
- fileName: string;
1451
- snapshot: ts.IScriptSnapshot | undefined;
1452
- snapshotVersion: number | undefined;
1453
- } | undefined;
1287
+ uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
1454
1288
  uriHas: (_uri: string) => boolean;
1455
- uriSet: (_uri: string, item: {
1456
- version: number;
1457
- fileName: string;
1458
- snapshot: ts.IScriptSnapshot | undefined;
1459
- snapshotVersion: number | undefined;
1460
- }) => void;
1289
+ uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
1461
1290
  pathDelete: (path: string) => boolean;
1462
- pathGet: (path: string) => {
1463
- version: number;
1464
- fileName: string;
1465
- snapshot: ts.IScriptSnapshot | undefined;
1466
- snapshotVersion: number | undefined;
1467
- } | undefined;
1468
- pathHas: (path: string) => {
1469
- version: number;
1470
- fileName: string;
1471
- snapshot: ts.IScriptSnapshot | undefined;
1472
- snapshotVersion: number | undefined;
1473
- } | undefined;
1474
- pathSet: (path: string, item: {
1475
- version: number;
1476
- fileName: string;
1477
- snapshot: ts.IScriptSnapshot | undefined;
1478
- snapshotVersion: number | undefined;
1479
- }) => void;
1291
+ pathGet: (path: string) => ts.IScriptSnapshot | undefined;
1292
+ pathHas: (path: string) => ts.IScriptSnapshot | undefined;
1293
+ pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
1480
1294
  };
1481
- languageServiceHost: import("@volar/language-service").LanguageServiceHost;
1295
+ languageHost: import("@volar/language-core").TypeScriptLanguageHost;
1482
1296
  getLanguageService: () => {
1483
- triggerCharacters: string[];
1484
- autoFormatTriggerCharacters: string[];
1485
- signatureHelpTriggerCharacters: string[];
1486
- signatureHelpRetriggerCharacters: string[];
1297
+ getTriggerCharacters: () => string[];
1298
+ getAutoFormatTriggerCharacters: () => string[];
1299
+ getSignatureHelpTriggerCharacters: () => string[];
1300
+ getSignatureHelpRetriggerCharacters: () => string[];
1487
1301
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1488
1302
  ch: string;
1489
1303
  position: vscode.Position;
@@ -1529,14 +1343,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1529
1343
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1530
1344
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1531
1345
  };
1532
- dispose: () => void | undefined;
1533
- context: import("@volar/language-service").ServiceContext;
1346
+ dispose: () => void;
1347
+ context: import("@volar/language-service").ServiceContext<any>;
1534
1348
  };
1535
1349
  getLanguageServiceDontCreate: () => {
1536
- triggerCharacters: string[];
1537
- autoFormatTriggerCharacters: string[];
1538
- signatureHelpTriggerCharacters: string[];
1539
- signatureHelpRetriggerCharacters: string[];
1350
+ getTriggerCharacters: () => string[];
1351
+ getAutoFormatTriggerCharacters: () => string[];
1352
+ getSignatureHelpTriggerCharacters: () => string[];
1353
+ getSignatureHelpRetriggerCharacters: () => string[];
1540
1354
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1541
1355
  ch: string;
1542
1356
  position: vscode.Position;
@@ -1582,65 +1396,48 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1582
1396
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1583
1397
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1584
1398
  };
1585
- dispose: () => void | undefined;
1586
- context: import("@volar/language-service").ServiceContext;
1399
+ dispose: () => void;
1400
+ context: import("@volar/language-service").ServiceContext<any>;
1587
1401
  } | undefined;
1588
1402
  getParsedCommandLine: () => ts.ParsedCommandLine;
1589
1403
  tryAddFile: (fileName: string) => void;
1404
+ askedFiles: {
1405
+ clear: () => void;
1406
+ values: () => IterableIterator<boolean>;
1407
+ uriDelete: (_uri: string) => boolean;
1408
+ uriGet: (_uri: string) => boolean | undefined;
1409
+ uriHas: (_uri: string) => boolean;
1410
+ uriSet: (_uri: string, item: boolean) => void;
1411
+ pathDelete: (path: string) => boolean;
1412
+ pathGet: (path: string) => boolean | undefined;
1413
+ pathHas: (path: string) => boolean | undefined;
1414
+ pathSet: (path: string, item: boolean) => void;
1415
+ };
1590
1416
  dispose: () => void;
1591
- } | undefined;
1417
+ };
1592
1418
  } | {
1593
1419
  tsconfig: undefined;
1594
1420
  project: {
1595
- tsConfig: ts.CompilerOptions | path.PosixPath;
1421
+ context: import("./project").ProjectContext;
1422
+ tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
1596
1423
  scripts: {
1597
1424
  clear: () => void;
1598
- values: () => IterableIterator<{
1599
- version: number;
1600
- fileName: string;
1601
- snapshot: ts.IScriptSnapshot | undefined;
1602
- snapshotVersion: number | undefined;
1603
- }>;
1425
+ values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
1604
1426
  uriDelete: (_uri: string) => boolean;
1605
- uriGet: (_uri: string) => {
1606
- version: number;
1607
- fileName: string;
1608
- snapshot: ts.IScriptSnapshot | undefined;
1609
- snapshotVersion: number | undefined;
1610
- } | undefined;
1427
+ uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
1611
1428
  uriHas: (_uri: string) => boolean;
1612
- uriSet: (_uri: string, item: {
1613
- version: number;
1614
- fileName: string;
1615
- snapshot: ts.IScriptSnapshot | undefined;
1616
- snapshotVersion: number | undefined;
1617
- }) => void;
1429
+ uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
1618
1430
  pathDelete: (path: string) => boolean;
1619
- pathGet: (path: string) => {
1620
- version: number;
1621
- fileName: string;
1622
- snapshot: ts.IScriptSnapshot | undefined;
1623
- snapshotVersion: number | undefined;
1624
- } | undefined;
1625
- pathHas: (path: string) => {
1626
- version: number;
1627
- fileName: string;
1628
- snapshot: ts.IScriptSnapshot | undefined;
1629
- snapshotVersion: number | undefined;
1630
- } | undefined;
1631
- pathSet: (path: string, item: {
1632
- version: number;
1633
- fileName: string;
1634
- snapshot: ts.IScriptSnapshot | undefined;
1635
- snapshotVersion: number | undefined;
1636
- }) => void;
1431
+ pathGet: (path: string) => ts.IScriptSnapshot | undefined;
1432
+ pathHas: (path: string) => ts.IScriptSnapshot | undefined;
1433
+ pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
1637
1434
  };
1638
- languageServiceHost: import("@volar/language-service").LanguageServiceHost;
1435
+ languageHost: import("@volar/language-core").TypeScriptLanguageHost;
1639
1436
  getLanguageService: () => {
1640
- triggerCharacters: string[];
1641
- autoFormatTriggerCharacters: string[];
1642
- signatureHelpTriggerCharacters: string[];
1643
- signatureHelpRetriggerCharacters: string[];
1437
+ getTriggerCharacters: () => string[];
1438
+ getAutoFormatTriggerCharacters: () => string[];
1439
+ getSignatureHelpTriggerCharacters: () => string[];
1440
+ getSignatureHelpRetriggerCharacters: () => string[];
1644
1441
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1645
1442
  ch: string;
1646
1443
  position: vscode.Position;
@@ -1686,14 +1483,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1686
1483
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1687
1484
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1688
1485
  };
1689
- dispose: () => void | undefined;
1690
- context: import("@volar/language-service").ServiceContext;
1486
+ dispose: () => void;
1487
+ context: import("@volar/language-service").ServiceContext<any>;
1691
1488
  };
1692
1489
  getLanguageServiceDontCreate: () => {
1693
- triggerCharacters: string[];
1694
- autoFormatTriggerCharacters: string[];
1695
- signatureHelpTriggerCharacters: string[];
1696
- signatureHelpRetriggerCharacters: string[];
1490
+ getTriggerCharacters: () => string[];
1491
+ getAutoFormatTriggerCharacters: () => string[];
1492
+ getSignatureHelpTriggerCharacters: () => string[];
1493
+ getSignatureHelpRetriggerCharacters: () => string[];
1697
1494
  format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
1698
1495
  ch: string;
1699
1496
  position: vscode.Position;
@@ -1739,11 +1536,23 @@ export declare function createWorkspaces(context: WorkspacesContext): {
1739
1536
  getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
1740
1537
  getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
1741
1538
  };
1742
- dispose: () => void | undefined;
1743
- context: import("@volar/language-service").ServiceContext;
1539
+ dispose: () => void;
1540
+ context: import("@volar/language-service").ServiceContext<any>;
1744
1541
  } | undefined;
1745
1542
  getParsedCommandLine: () => ts.ParsedCommandLine;
1746
1543
  tryAddFile: (fileName: string) => void;
1544
+ askedFiles: {
1545
+ clear: () => void;
1546
+ values: () => IterableIterator<boolean>;
1547
+ uriDelete: (_uri: string) => boolean;
1548
+ uriGet: (_uri: string) => boolean | undefined;
1549
+ uriHas: (_uri: string) => boolean;
1550
+ uriSet: (_uri: string, item: boolean) => void;
1551
+ pathDelete: (path: string) => boolean;
1552
+ pathGet: (path: string) => boolean | undefined;
1553
+ pathHas: (path: string) => boolean | undefined;
1554
+ pathSet: (path: string, item: boolean) => void;
1555
+ };
1747
1556
  dispose: () => void;
1748
1557
  } | undefined;
1749
1558
  } | undefined>;