@volar/language-server 1.6.9-patch.1 → 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.
- package/out/browser/index.js +57 -62
- package/out/common/cancellationPipe.js +2 -6
- package/out/common/configurationHost.js +7 -2
- package/out/common/documents.d.ts +2 -2
- package/out/common/documents.js +10 -2
- package/out/common/features/customFeatures.js +6 -5
- package/out/common/features/languageFeatures.js +5 -5
- package/out/common/project.d.ts +112 -112
- package/out/common/project.js +147 -260
- package/out/common/server.d.ts +5 -1
- package/out/common/server.js +83 -12
- package/out/common/workspace.d.ts +288 -289
- package/out/common/workspace.js +16 -16
- package/out/common/workspaces.d.ts +354 -357
- package/out/common/workspaces.js +3 -6
- package/out/node/index.js +82 -83
- package/out/protocol.d.ts +5 -2
- package/out/protocol.js +16 -12
- package/out/types.d.ts +12 -44
- package/out/types.js +2 -2
- package/package.json +7 -6
|
@@ -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,56 +13,44 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
14
13
|
projects: {
|
|
15
14
|
clear: () => void;
|
|
16
15
|
values: () => IterableIterator<Promise<{
|
|
17
|
-
|
|
18
|
-
tsConfig:
|
|
16
|
+
context: import("./project").ProjectContext;
|
|
17
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
19
18
|
scripts: {
|
|
20
19
|
clear: () => void;
|
|
21
20
|
values: () => IterableIterator<{
|
|
21
|
+
snapshot: ts.IScriptSnapshot;
|
|
22
22
|
version: number;
|
|
23
|
-
|
|
24
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
25
|
-
snapshotVersion: number | undefined;
|
|
26
|
-
}>;
|
|
23
|
+
} | undefined>;
|
|
27
24
|
uriDelete: (_uri: string) => boolean;
|
|
28
25
|
uriGet: (_uri: string) => {
|
|
26
|
+
snapshot: ts.IScriptSnapshot;
|
|
29
27
|
version: number;
|
|
30
|
-
fileName: string;
|
|
31
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
32
|
-
snapshotVersion: number | undefined;
|
|
33
28
|
} | undefined;
|
|
34
29
|
uriHas: (_uri: string) => boolean;
|
|
35
30
|
uriSet: (_uri: string, item: {
|
|
31
|
+
snapshot: ts.IScriptSnapshot;
|
|
36
32
|
version: number;
|
|
37
|
-
|
|
38
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
39
|
-
snapshotVersion: number | undefined;
|
|
40
|
-
}) => void;
|
|
33
|
+
} | undefined) => void;
|
|
41
34
|
pathDelete: (path: string) => boolean;
|
|
42
35
|
pathGet: (path: string) => {
|
|
36
|
+
snapshot: ts.IScriptSnapshot;
|
|
43
37
|
version: number;
|
|
44
|
-
fileName: string;
|
|
45
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
46
|
-
snapshotVersion: number | undefined;
|
|
47
38
|
} | undefined;
|
|
48
39
|
pathHas: (path: string) => {
|
|
40
|
+
snapshot: ts.IScriptSnapshot;
|
|
49
41
|
version: number;
|
|
50
|
-
fileName: string;
|
|
51
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
52
|
-
snapshotVersion: number | undefined;
|
|
53
42
|
} | undefined;
|
|
54
43
|
pathSet: (path: string, item: {
|
|
44
|
+
snapshot: ts.IScriptSnapshot;
|
|
55
45
|
version: number;
|
|
56
|
-
|
|
57
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
58
|
-
snapshotVersion: number | undefined;
|
|
59
|
-
}) => void;
|
|
46
|
+
} | undefined) => void;
|
|
60
47
|
};
|
|
61
|
-
|
|
48
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
62
49
|
getLanguageService: () => {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
50
|
+
getTriggerCharacters: () => string[];
|
|
51
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
52
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
53
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
67
54
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
68
55
|
ch: string;
|
|
69
56
|
position: vscode.Position;
|
|
@@ -113,10 +100,10 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
113
100
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
114
101
|
};
|
|
115
102
|
getLanguageServiceDontCreate: () => {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
103
|
+
getTriggerCharacters: () => string[];
|
|
104
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
105
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
106
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
120
107
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
121
108
|
ch: string;
|
|
122
109
|
position: vscode.Position;
|
|
@@ -167,60 +154,60 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
167
154
|
} | undefined;
|
|
168
155
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
169
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
|
+
};
|
|
170
169
|
dispose: () => void;
|
|
171
170
|
}>>;
|
|
172
171
|
uriDelete: (_uri: string) => boolean;
|
|
173
172
|
uriGet: (_uri: string) => Promise<{
|
|
174
|
-
|
|
175
|
-
tsConfig:
|
|
173
|
+
context: import("./project").ProjectContext;
|
|
174
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
176
175
|
scripts: {
|
|
177
176
|
clear: () => void;
|
|
178
177
|
values: () => IterableIterator<{
|
|
178
|
+
snapshot: ts.IScriptSnapshot;
|
|
179
179
|
version: number;
|
|
180
|
-
|
|
181
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
182
|
-
snapshotVersion: number | undefined;
|
|
183
|
-
}>;
|
|
180
|
+
} | undefined>;
|
|
184
181
|
uriDelete: (_uri: string) => boolean;
|
|
185
182
|
uriGet: (_uri: string) => {
|
|
183
|
+
snapshot: ts.IScriptSnapshot;
|
|
186
184
|
version: number;
|
|
187
|
-
fileName: string;
|
|
188
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
189
|
-
snapshotVersion: number | undefined;
|
|
190
185
|
} | undefined;
|
|
191
186
|
uriHas: (_uri: string) => boolean;
|
|
192
187
|
uriSet: (_uri: string, item: {
|
|
188
|
+
snapshot: ts.IScriptSnapshot;
|
|
193
189
|
version: number;
|
|
194
|
-
|
|
195
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
196
|
-
snapshotVersion: number | undefined;
|
|
197
|
-
}) => void;
|
|
190
|
+
} | undefined) => void;
|
|
198
191
|
pathDelete: (path: string) => boolean;
|
|
199
192
|
pathGet: (path: string) => {
|
|
193
|
+
snapshot: ts.IScriptSnapshot;
|
|
200
194
|
version: number;
|
|
201
|
-
fileName: string;
|
|
202
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
203
|
-
snapshotVersion: number | undefined;
|
|
204
195
|
} | undefined;
|
|
205
196
|
pathHas: (path: string) => {
|
|
197
|
+
snapshot: ts.IScriptSnapshot;
|
|
206
198
|
version: number;
|
|
207
|
-
fileName: string;
|
|
208
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
209
|
-
snapshotVersion: number | undefined;
|
|
210
199
|
} | undefined;
|
|
211
200
|
pathSet: (path: string, item: {
|
|
201
|
+
snapshot: ts.IScriptSnapshot;
|
|
212
202
|
version: number;
|
|
213
|
-
|
|
214
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
215
|
-
snapshotVersion: number | undefined;
|
|
216
|
-
}) => void;
|
|
203
|
+
} | undefined) => void;
|
|
217
204
|
};
|
|
218
|
-
|
|
205
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
219
206
|
getLanguageService: () => {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
207
|
+
getTriggerCharacters: () => string[];
|
|
208
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
209
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
210
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
224
211
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
225
212
|
ch: string;
|
|
226
213
|
position: vscode.Position;
|
|
@@ -270,10 +257,10 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
270
257
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
271
258
|
};
|
|
272
259
|
getLanguageServiceDontCreate: () => {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
260
|
+
getTriggerCharacters: () => string[];
|
|
261
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
262
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
263
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
277
264
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
278
265
|
ch: string;
|
|
279
266
|
position: vscode.Position;
|
|
@@ -324,60 +311,60 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
324
311
|
} | undefined;
|
|
325
312
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
326
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
|
+
};
|
|
327
326
|
dispose: () => void;
|
|
328
327
|
}> | undefined;
|
|
329
328
|
uriHas: (_uri: string) => boolean;
|
|
330
329
|
uriSet: (_uri: string, item: Promise<{
|
|
331
|
-
|
|
332
|
-
tsConfig:
|
|
330
|
+
context: import("./project").ProjectContext;
|
|
331
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
333
332
|
scripts: {
|
|
334
333
|
clear: () => void;
|
|
335
334
|
values: () => IterableIterator<{
|
|
335
|
+
snapshot: ts.IScriptSnapshot;
|
|
336
336
|
version: number;
|
|
337
|
-
|
|
338
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
339
|
-
snapshotVersion: number | undefined;
|
|
340
|
-
}>;
|
|
337
|
+
} | undefined>;
|
|
341
338
|
uriDelete: (_uri: string) => boolean;
|
|
342
339
|
uriGet: (_uri: string) => {
|
|
340
|
+
snapshot: ts.IScriptSnapshot;
|
|
343
341
|
version: number;
|
|
344
|
-
fileName: string;
|
|
345
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
346
|
-
snapshotVersion: number | undefined;
|
|
347
342
|
} | undefined;
|
|
348
343
|
uriHas: (_uri: string) => boolean;
|
|
349
344
|
uriSet: (_uri: string, item: {
|
|
345
|
+
snapshot: ts.IScriptSnapshot;
|
|
350
346
|
version: number;
|
|
351
|
-
|
|
352
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
353
|
-
snapshotVersion: number | undefined;
|
|
354
|
-
}) => void;
|
|
347
|
+
} | undefined) => void;
|
|
355
348
|
pathDelete: (path: string) => boolean;
|
|
356
349
|
pathGet: (path: string) => {
|
|
350
|
+
snapshot: ts.IScriptSnapshot;
|
|
357
351
|
version: number;
|
|
358
|
-
fileName: string;
|
|
359
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
360
|
-
snapshotVersion: number | undefined;
|
|
361
352
|
} | undefined;
|
|
362
353
|
pathHas: (path: string) => {
|
|
354
|
+
snapshot: ts.IScriptSnapshot;
|
|
363
355
|
version: number;
|
|
364
|
-
fileName: string;
|
|
365
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
366
|
-
snapshotVersion: number | undefined;
|
|
367
356
|
} | undefined;
|
|
368
357
|
pathSet: (path: string, item: {
|
|
358
|
+
snapshot: ts.IScriptSnapshot;
|
|
369
359
|
version: number;
|
|
370
|
-
|
|
371
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
372
|
-
snapshotVersion: number | undefined;
|
|
373
|
-
}) => void;
|
|
360
|
+
} | undefined) => void;
|
|
374
361
|
};
|
|
375
|
-
|
|
362
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
376
363
|
getLanguageService: () => {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
364
|
+
getTriggerCharacters: () => string[];
|
|
365
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
366
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
367
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
381
368
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
382
369
|
ch: string;
|
|
383
370
|
position: vscode.Position;
|
|
@@ -427,10 +414,10 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
427
414
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
428
415
|
};
|
|
429
416
|
getLanguageServiceDontCreate: () => {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
417
|
+
getTriggerCharacters: () => string[];
|
|
418
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
419
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
420
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
434
421
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
435
422
|
ch: string;
|
|
436
423
|
position: vscode.Position;
|
|
@@ -481,60 +468,60 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
481
468
|
} | undefined;
|
|
482
469
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
483
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
|
+
};
|
|
484
483
|
dispose: () => void;
|
|
485
484
|
}>) => void;
|
|
486
485
|
pathDelete: (path: string) => boolean;
|
|
487
486
|
pathGet: (path: string) => Promise<{
|
|
488
|
-
|
|
489
|
-
tsConfig:
|
|
487
|
+
context: import("./project").ProjectContext;
|
|
488
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
490
489
|
scripts: {
|
|
491
490
|
clear: () => void;
|
|
492
491
|
values: () => IterableIterator<{
|
|
492
|
+
snapshot: ts.IScriptSnapshot;
|
|
493
493
|
version: number;
|
|
494
|
-
|
|
495
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
496
|
-
snapshotVersion: number | undefined;
|
|
497
|
-
}>;
|
|
494
|
+
} | undefined>;
|
|
498
495
|
uriDelete: (_uri: string) => boolean;
|
|
499
496
|
uriGet: (_uri: string) => {
|
|
497
|
+
snapshot: ts.IScriptSnapshot;
|
|
500
498
|
version: number;
|
|
501
|
-
fileName: string;
|
|
502
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
503
|
-
snapshotVersion: number | undefined;
|
|
504
499
|
} | undefined;
|
|
505
500
|
uriHas: (_uri: string) => boolean;
|
|
506
501
|
uriSet: (_uri: string, item: {
|
|
502
|
+
snapshot: ts.IScriptSnapshot;
|
|
507
503
|
version: number;
|
|
508
|
-
|
|
509
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
510
|
-
snapshotVersion: number | undefined;
|
|
511
|
-
}) => void;
|
|
504
|
+
} | undefined) => void;
|
|
512
505
|
pathDelete: (path: string) => boolean;
|
|
513
506
|
pathGet: (path: string) => {
|
|
507
|
+
snapshot: ts.IScriptSnapshot;
|
|
514
508
|
version: number;
|
|
515
|
-
fileName: string;
|
|
516
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
517
|
-
snapshotVersion: number | undefined;
|
|
518
509
|
} | undefined;
|
|
519
510
|
pathHas: (path: string) => {
|
|
511
|
+
snapshot: ts.IScriptSnapshot;
|
|
520
512
|
version: number;
|
|
521
|
-
fileName: string;
|
|
522
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
523
|
-
snapshotVersion: number | undefined;
|
|
524
513
|
} | undefined;
|
|
525
514
|
pathSet: (path: string, item: {
|
|
515
|
+
snapshot: ts.IScriptSnapshot;
|
|
526
516
|
version: number;
|
|
527
|
-
|
|
528
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
529
|
-
snapshotVersion: number | undefined;
|
|
530
|
-
}) => void;
|
|
517
|
+
} | undefined) => void;
|
|
531
518
|
};
|
|
532
|
-
|
|
519
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
533
520
|
getLanguageService: () => {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
521
|
+
getTriggerCharacters: () => string[];
|
|
522
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
523
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
524
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
538
525
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
539
526
|
ch: string;
|
|
540
527
|
position: vscode.Position;
|
|
@@ -584,10 +571,10 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
584
571
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
585
572
|
};
|
|
586
573
|
getLanguageServiceDontCreate: () => {
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
574
|
+
getTriggerCharacters: () => string[];
|
|
575
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
576
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
577
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
591
578
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
592
579
|
ch: string;
|
|
593
580
|
position: vscode.Position;
|
|
@@ -638,59 +625,59 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
638
625
|
} | undefined;
|
|
639
626
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
640
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
|
+
};
|
|
641
640
|
dispose: () => void;
|
|
642
641
|
}> | undefined;
|
|
643
642
|
pathHas: (path: string) => Promise<{
|
|
644
|
-
|
|
645
|
-
tsConfig:
|
|
643
|
+
context: import("./project").ProjectContext;
|
|
644
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
646
645
|
scripts: {
|
|
647
646
|
clear: () => void;
|
|
648
647
|
values: () => IterableIterator<{
|
|
648
|
+
snapshot: ts.IScriptSnapshot;
|
|
649
649
|
version: number;
|
|
650
|
-
|
|
651
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
652
|
-
snapshotVersion: number | undefined;
|
|
653
|
-
}>;
|
|
650
|
+
} | undefined>;
|
|
654
651
|
uriDelete: (_uri: string) => boolean;
|
|
655
652
|
uriGet: (_uri: string) => {
|
|
653
|
+
snapshot: ts.IScriptSnapshot;
|
|
656
654
|
version: number;
|
|
657
|
-
fileName: string;
|
|
658
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
659
|
-
snapshotVersion: number | undefined;
|
|
660
655
|
} | undefined;
|
|
661
656
|
uriHas: (_uri: string) => boolean;
|
|
662
657
|
uriSet: (_uri: string, item: {
|
|
658
|
+
snapshot: ts.IScriptSnapshot;
|
|
663
659
|
version: number;
|
|
664
|
-
|
|
665
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
666
|
-
snapshotVersion: number | undefined;
|
|
667
|
-
}) => void;
|
|
660
|
+
} | undefined) => void;
|
|
668
661
|
pathDelete: (path: string) => boolean;
|
|
669
662
|
pathGet: (path: string) => {
|
|
663
|
+
snapshot: ts.IScriptSnapshot;
|
|
670
664
|
version: number;
|
|
671
|
-
fileName: string;
|
|
672
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
673
|
-
snapshotVersion: number | undefined;
|
|
674
665
|
} | undefined;
|
|
675
666
|
pathHas: (path: string) => {
|
|
667
|
+
snapshot: ts.IScriptSnapshot;
|
|
676
668
|
version: number;
|
|
677
|
-
fileName: string;
|
|
678
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
679
|
-
snapshotVersion: number | undefined;
|
|
680
669
|
} | undefined;
|
|
681
670
|
pathSet: (path: string, item: {
|
|
671
|
+
snapshot: ts.IScriptSnapshot;
|
|
682
672
|
version: number;
|
|
683
|
-
|
|
684
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
685
|
-
snapshotVersion: number | undefined;
|
|
686
|
-
}) => void;
|
|
673
|
+
} | undefined) => void;
|
|
687
674
|
};
|
|
688
|
-
|
|
675
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
689
676
|
getLanguageService: () => {
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
677
|
+
getTriggerCharacters: () => string[];
|
|
678
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
679
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
680
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
694
681
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
695
682
|
ch: string;
|
|
696
683
|
position: vscode.Position;
|
|
@@ -740,10 +727,10 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
740
727
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
741
728
|
};
|
|
742
729
|
getLanguageServiceDontCreate: () => {
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
730
|
+
getTriggerCharacters: () => string[];
|
|
731
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
732
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
733
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
747
734
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
748
735
|
ch: string;
|
|
749
736
|
position: vscode.Position;
|
|
@@ -794,59 +781,59 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
794
781
|
} | undefined;
|
|
795
782
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
796
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
|
+
};
|
|
797
796
|
dispose: () => void;
|
|
798
797
|
}> | undefined;
|
|
799
798
|
pathSet: (path: string, item: Promise<{
|
|
800
|
-
|
|
801
|
-
tsConfig:
|
|
799
|
+
context: import("./project").ProjectContext;
|
|
800
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
802
801
|
scripts: {
|
|
803
802
|
clear: () => void;
|
|
804
803
|
values: () => IterableIterator<{
|
|
804
|
+
snapshot: ts.IScriptSnapshot;
|
|
805
805
|
version: number;
|
|
806
|
-
|
|
807
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
808
|
-
snapshotVersion: number | undefined;
|
|
809
|
-
}>;
|
|
806
|
+
} | undefined>;
|
|
810
807
|
uriDelete: (_uri: string) => boolean;
|
|
811
808
|
uriGet: (_uri: string) => {
|
|
809
|
+
snapshot: ts.IScriptSnapshot;
|
|
812
810
|
version: number;
|
|
813
|
-
fileName: string;
|
|
814
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
815
|
-
snapshotVersion: number | undefined;
|
|
816
811
|
} | undefined;
|
|
817
812
|
uriHas: (_uri: string) => boolean;
|
|
818
813
|
uriSet: (_uri: string, item: {
|
|
814
|
+
snapshot: ts.IScriptSnapshot;
|
|
819
815
|
version: number;
|
|
820
|
-
|
|
821
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
822
|
-
snapshotVersion: number | undefined;
|
|
823
|
-
}) => void;
|
|
816
|
+
} | undefined) => void;
|
|
824
817
|
pathDelete: (path: string) => boolean;
|
|
825
818
|
pathGet: (path: string) => {
|
|
819
|
+
snapshot: ts.IScriptSnapshot;
|
|
826
820
|
version: number;
|
|
827
|
-
fileName: string;
|
|
828
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
829
|
-
snapshotVersion: number | undefined;
|
|
830
821
|
} | undefined;
|
|
831
822
|
pathHas: (path: string) => {
|
|
823
|
+
snapshot: ts.IScriptSnapshot;
|
|
832
824
|
version: number;
|
|
833
|
-
fileName: string;
|
|
834
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
835
|
-
snapshotVersion: number | undefined;
|
|
836
825
|
} | undefined;
|
|
837
826
|
pathSet: (path: string, item: {
|
|
827
|
+
snapshot: ts.IScriptSnapshot;
|
|
838
828
|
version: number;
|
|
839
|
-
|
|
840
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
841
|
-
snapshotVersion: number | undefined;
|
|
842
|
-
}) => void;
|
|
829
|
+
} | undefined) => void;
|
|
843
830
|
};
|
|
844
|
-
|
|
831
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
845
832
|
getLanguageService: () => {
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
833
|
+
getTriggerCharacters: () => string[];
|
|
834
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
835
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
836
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
850
837
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
851
838
|
ch: string;
|
|
852
839
|
position: vscode.Position;
|
|
@@ -896,10 +883,10 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
896
883
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
897
884
|
};
|
|
898
885
|
getLanguageServiceDontCreate: () => {
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
886
|
+
getTriggerCharacters: () => string[];
|
|
887
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
888
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
889
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
903
890
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
904
891
|
ch: string;
|
|
905
892
|
position: vscode.Position;
|
|
@@ -950,62 +937,62 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
950
937
|
} | undefined;
|
|
951
938
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
952
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
|
+
};
|
|
953
952
|
dispose: () => void;
|
|
954
953
|
}>) => void;
|
|
955
954
|
};
|
|
956
955
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
957
956
|
tsconfig: string;
|
|
958
957
|
project: {
|
|
959
|
-
|
|
960
|
-
tsConfig:
|
|
958
|
+
context: import("./project").ProjectContext;
|
|
959
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
961
960
|
scripts: {
|
|
962
961
|
clear: () => void;
|
|
963
962
|
values: () => IterableIterator<{
|
|
963
|
+
snapshot: ts.IScriptSnapshot;
|
|
964
964
|
version: number;
|
|
965
|
-
|
|
966
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
967
|
-
snapshotVersion: number | undefined;
|
|
968
|
-
}>;
|
|
965
|
+
} | undefined>;
|
|
969
966
|
uriDelete: (_uri: string) => boolean;
|
|
970
967
|
uriGet: (_uri: string) => {
|
|
968
|
+
snapshot: ts.IScriptSnapshot;
|
|
971
969
|
version: number;
|
|
972
|
-
fileName: string;
|
|
973
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
974
|
-
snapshotVersion: number | undefined;
|
|
975
970
|
} | undefined;
|
|
976
971
|
uriHas: (_uri: string) => boolean;
|
|
977
972
|
uriSet: (_uri: string, item: {
|
|
973
|
+
snapshot: ts.IScriptSnapshot;
|
|
978
974
|
version: number;
|
|
979
|
-
|
|
980
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
981
|
-
snapshotVersion: number | undefined;
|
|
982
|
-
}) => void;
|
|
975
|
+
} | undefined) => void;
|
|
983
976
|
pathDelete: (path: string) => boolean;
|
|
984
977
|
pathGet: (path: string) => {
|
|
978
|
+
snapshot: ts.IScriptSnapshot;
|
|
985
979
|
version: number;
|
|
986
|
-
fileName: string;
|
|
987
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
988
|
-
snapshotVersion: number | undefined;
|
|
989
980
|
} | undefined;
|
|
990
981
|
pathHas: (path: string) => {
|
|
982
|
+
snapshot: ts.IScriptSnapshot;
|
|
991
983
|
version: number;
|
|
992
|
-
fileName: string;
|
|
993
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
994
|
-
snapshotVersion: number | undefined;
|
|
995
984
|
} | undefined;
|
|
996
985
|
pathSet: (path: string, item: {
|
|
986
|
+
snapshot: ts.IScriptSnapshot;
|
|
997
987
|
version: number;
|
|
998
|
-
|
|
999
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1000
|
-
snapshotVersion: number | undefined;
|
|
1001
|
-
}) => void;
|
|
988
|
+
} | undefined) => void;
|
|
1002
989
|
};
|
|
1003
|
-
|
|
990
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
1004
991
|
getLanguageService: () => {
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
992
|
+
getTriggerCharacters: () => string[];
|
|
993
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
994
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
995
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1009
996
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1010
997
|
ch: string;
|
|
1011
998
|
position: vscode.Position;
|
|
@@ -1055,10 +1042,10 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1055
1042
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
1056
1043
|
};
|
|
1057
1044
|
getLanguageServiceDontCreate: () => {
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1045
|
+
getTriggerCharacters: () => string[];
|
|
1046
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1047
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1048
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1062
1049
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1063
1050
|
ch: string;
|
|
1064
1051
|
position: vscode.Position;
|
|
@@ -1109,60 +1096,60 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1109
1096
|
} | undefined;
|
|
1110
1097
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1111
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
|
+
};
|
|
1112
1111
|
dispose: () => void;
|
|
1113
1112
|
};
|
|
1114
1113
|
} | undefined>;
|
|
1115
1114
|
getInferredProject: () => Promise<{
|
|
1116
|
-
|
|
1117
|
-
tsConfig:
|
|
1115
|
+
context: import("./project").ProjectContext;
|
|
1116
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
1118
1117
|
scripts: {
|
|
1119
1118
|
clear: () => void;
|
|
1120
1119
|
values: () => IterableIterator<{
|
|
1120
|
+
snapshot: ts.IScriptSnapshot;
|
|
1121
1121
|
version: number;
|
|
1122
|
-
|
|
1123
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1124
|
-
snapshotVersion: number | undefined;
|
|
1125
|
-
}>;
|
|
1122
|
+
} | undefined>;
|
|
1126
1123
|
uriDelete: (_uri: string) => boolean;
|
|
1127
1124
|
uriGet: (_uri: string) => {
|
|
1125
|
+
snapshot: ts.IScriptSnapshot;
|
|
1128
1126
|
version: number;
|
|
1129
|
-
fileName: string;
|
|
1130
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1131
|
-
snapshotVersion: number | undefined;
|
|
1132
1127
|
} | undefined;
|
|
1133
1128
|
uriHas: (_uri: string) => boolean;
|
|
1134
1129
|
uriSet: (_uri: string, item: {
|
|
1130
|
+
snapshot: ts.IScriptSnapshot;
|
|
1135
1131
|
version: number;
|
|
1136
|
-
|
|
1137
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1138
|
-
snapshotVersion: number | undefined;
|
|
1139
|
-
}) => void;
|
|
1132
|
+
} | undefined) => void;
|
|
1140
1133
|
pathDelete: (path: string) => boolean;
|
|
1141
1134
|
pathGet: (path: string) => {
|
|
1135
|
+
snapshot: ts.IScriptSnapshot;
|
|
1142
1136
|
version: number;
|
|
1143
|
-
fileName: string;
|
|
1144
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1145
|
-
snapshotVersion: number | undefined;
|
|
1146
1137
|
} | undefined;
|
|
1147
1138
|
pathHas: (path: string) => {
|
|
1139
|
+
snapshot: ts.IScriptSnapshot;
|
|
1148
1140
|
version: number;
|
|
1149
|
-
fileName: string;
|
|
1150
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1151
|
-
snapshotVersion: number | undefined;
|
|
1152
1141
|
} | undefined;
|
|
1153
1142
|
pathSet: (path: string, item: {
|
|
1143
|
+
snapshot: ts.IScriptSnapshot;
|
|
1154
1144
|
version: number;
|
|
1155
|
-
|
|
1156
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1157
|
-
snapshotVersion: number | undefined;
|
|
1158
|
-
}) => void;
|
|
1145
|
+
} | undefined) => void;
|
|
1159
1146
|
};
|
|
1160
|
-
|
|
1147
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
1161
1148
|
getLanguageService: () => {
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1149
|
+
getTriggerCharacters: () => string[];
|
|
1150
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1151
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1152
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1166
1153
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1167
1154
|
ch: string;
|
|
1168
1155
|
position: vscode.Position;
|
|
@@ -1212,10 +1199,10 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1212
1199
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
1213
1200
|
};
|
|
1214
1201
|
getLanguageServiceDontCreate: () => {
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1202
|
+
getTriggerCharacters: () => string[];
|
|
1203
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1204
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1205
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1219
1206
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1220
1207
|
ch: string;
|
|
1221
1208
|
position: vscode.Position;
|
|
@@ -1266,59 +1253,59 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1266
1253
|
} | undefined;
|
|
1267
1254
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1268
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
|
+
};
|
|
1269
1268
|
dispose: () => void;
|
|
1270
1269
|
}>;
|
|
1271
1270
|
getInferredProjectDontCreate: () => Promise<{
|
|
1272
|
-
|
|
1273
|
-
tsConfig:
|
|
1271
|
+
context: import("./project").ProjectContext;
|
|
1272
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
1274
1273
|
scripts: {
|
|
1275
1274
|
clear: () => void;
|
|
1276
1275
|
values: () => IterableIterator<{
|
|
1276
|
+
snapshot: ts.IScriptSnapshot;
|
|
1277
1277
|
version: number;
|
|
1278
|
-
|
|
1279
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1280
|
-
snapshotVersion: number | undefined;
|
|
1281
|
-
}>;
|
|
1278
|
+
} | undefined>;
|
|
1282
1279
|
uriDelete: (_uri: string) => boolean;
|
|
1283
1280
|
uriGet: (_uri: string) => {
|
|
1281
|
+
snapshot: ts.IScriptSnapshot;
|
|
1284
1282
|
version: number;
|
|
1285
|
-
fileName: string;
|
|
1286
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1287
|
-
snapshotVersion: number | undefined;
|
|
1288
1283
|
} | undefined;
|
|
1289
1284
|
uriHas: (_uri: string) => boolean;
|
|
1290
1285
|
uriSet: (_uri: string, item: {
|
|
1286
|
+
snapshot: ts.IScriptSnapshot;
|
|
1291
1287
|
version: number;
|
|
1292
|
-
|
|
1293
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1294
|
-
snapshotVersion: number | undefined;
|
|
1295
|
-
}) => void;
|
|
1288
|
+
} | undefined) => void;
|
|
1296
1289
|
pathDelete: (path: string) => boolean;
|
|
1297
1290
|
pathGet: (path: string) => {
|
|
1291
|
+
snapshot: ts.IScriptSnapshot;
|
|
1298
1292
|
version: number;
|
|
1299
|
-
fileName: string;
|
|
1300
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1301
|
-
snapshotVersion: number | undefined;
|
|
1302
1293
|
} | undefined;
|
|
1303
1294
|
pathHas: (path: string) => {
|
|
1295
|
+
snapshot: ts.IScriptSnapshot;
|
|
1304
1296
|
version: number;
|
|
1305
|
-
fileName: string;
|
|
1306
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1307
|
-
snapshotVersion: number | undefined;
|
|
1308
1297
|
} | undefined;
|
|
1309
1298
|
pathSet: (path: string, item: {
|
|
1299
|
+
snapshot: ts.IScriptSnapshot;
|
|
1310
1300
|
version: number;
|
|
1311
|
-
|
|
1312
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1313
|
-
snapshotVersion: number | undefined;
|
|
1314
|
-
}) => void;
|
|
1301
|
+
} | undefined) => void;
|
|
1315
1302
|
};
|
|
1316
|
-
|
|
1303
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
1317
1304
|
getLanguageService: () => {
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1305
|
+
getTriggerCharacters: () => string[];
|
|
1306
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1307
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1308
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1322
1309
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1323
1310
|
ch: string;
|
|
1324
1311
|
position: vscode.Position;
|
|
@@ -1368,10 +1355,10 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1368
1355
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
1369
1356
|
};
|
|
1370
1357
|
getLanguageServiceDontCreate: () => {
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1358
|
+
getTriggerCharacters: () => string[];
|
|
1359
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1360
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1361
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1375
1362
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1376
1363
|
ch: string;
|
|
1377
1364
|
position: vscode.Position;
|
|
@@ -1422,6 +1409,18 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1422
1409
|
} | undefined;
|
|
1423
1410
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1424
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
|
+
};
|
|
1425
1424
|
dispose: () => void;
|
|
1426
1425
|
}> | undefined;
|
|
1427
1426
|
reload: () => void;
|