@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,12 +1,11 @@
|
|
|
1
|
-
|
|
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 {
|
|
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,56 +24,44 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
27
24
|
projects: {
|
|
28
25
|
clear: () => void;
|
|
29
26
|
values: () => IterableIterator<Promise<{
|
|
30
|
-
|
|
31
|
-
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
27
|
+
context: import("./project").ProjectContext;
|
|
28
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
32
29
|
scripts: {
|
|
33
30
|
clear: () => void;
|
|
34
31
|
values: () => IterableIterator<{
|
|
32
|
+
snapshot: ts.IScriptSnapshot;
|
|
35
33
|
version: number;
|
|
36
|
-
|
|
37
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
38
|
-
snapshotVersion: number | undefined;
|
|
39
|
-
}>;
|
|
34
|
+
} | undefined>;
|
|
40
35
|
uriDelete: (_uri: string) => boolean;
|
|
41
36
|
uriGet: (_uri: string) => {
|
|
37
|
+
snapshot: ts.IScriptSnapshot;
|
|
42
38
|
version: number;
|
|
43
|
-
fileName: string;
|
|
44
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
45
|
-
snapshotVersion: number | undefined;
|
|
46
39
|
} | undefined;
|
|
47
40
|
uriHas: (_uri: string) => boolean;
|
|
48
41
|
uriSet: (_uri: string, item: {
|
|
42
|
+
snapshot: ts.IScriptSnapshot;
|
|
49
43
|
version: number;
|
|
50
|
-
|
|
51
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
52
|
-
snapshotVersion: number | undefined;
|
|
53
|
-
}) => void;
|
|
44
|
+
} | undefined) => void;
|
|
54
45
|
pathDelete: (path: string) => boolean;
|
|
55
46
|
pathGet: (path: string) => {
|
|
47
|
+
snapshot: ts.IScriptSnapshot;
|
|
56
48
|
version: number;
|
|
57
|
-
fileName: string;
|
|
58
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
59
|
-
snapshotVersion: number | undefined;
|
|
60
49
|
} | undefined;
|
|
61
50
|
pathHas: (path: string) => {
|
|
51
|
+
snapshot: ts.IScriptSnapshot;
|
|
62
52
|
version: number;
|
|
63
|
-
fileName: string;
|
|
64
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
65
|
-
snapshotVersion: number | undefined;
|
|
66
53
|
} | undefined;
|
|
67
54
|
pathSet: (path: string, item: {
|
|
55
|
+
snapshot: ts.IScriptSnapshot;
|
|
68
56
|
version: number;
|
|
69
|
-
|
|
70
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
71
|
-
snapshotVersion: number | undefined;
|
|
72
|
-
}) => void;
|
|
57
|
+
} | undefined) => void;
|
|
73
58
|
};
|
|
74
|
-
|
|
59
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
75
60
|
getLanguageService: () => {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
61
|
+
getTriggerCharacters: () => string[];
|
|
62
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
63
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
64
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
80
65
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
81
66
|
ch: string;
|
|
82
67
|
position: vscode.Position;
|
|
@@ -126,10 +111,10 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
126
111
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
127
112
|
};
|
|
128
113
|
getLanguageServiceDontCreate: () => {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
114
|
+
getTriggerCharacters: () => string[];
|
|
115
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
116
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
117
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
133
118
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
134
119
|
ch: string;
|
|
135
120
|
position: vscode.Position;
|
|
@@ -180,60 +165,60 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
180
165
|
} | undefined;
|
|
181
166
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
182
167
|
tryAddFile: (fileName: string) => void;
|
|
168
|
+
askedFiles: {
|
|
169
|
+
clear: () => void;
|
|
170
|
+
values: () => IterableIterator<boolean>;
|
|
171
|
+
uriDelete: (_uri: string) => boolean;
|
|
172
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
173
|
+
uriHas: (_uri: string) => boolean;
|
|
174
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
175
|
+
pathDelete: (path: string) => boolean;
|
|
176
|
+
pathGet: (path: string) => boolean | undefined;
|
|
177
|
+
pathHas: (path: string) => boolean | undefined;
|
|
178
|
+
pathSet: (path: string, item: boolean) => void;
|
|
179
|
+
};
|
|
183
180
|
dispose: () => void;
|
|
184
181
|
}>>;
|
|
185
182
|
uriDelete: (_uri: string) => boolean;
|
|
186
183
|
uriGet: (_uri: string) => Promise<{
|
|
187
|
-
|
|
188
|
-
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
184
|
+
context: import("./project").ProjectContext;
|
|
185
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
189
186
|
scripts: {
|
|
190
187
|
clear: () => void;
|
|
191
188
|
values: () => IterableIterator<{
|
|
189
|
+
snapshot: ts.IScriptSnapshot;
|
|
192
190
|
version: number;
|
|
193
|
-
|
|
194
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
195
|
-
snapshotVersion: number | undefined;
|
|
196
|
-
}>;
|
|
191
|
+
} | undefined>;
|
|
197
192
|
uriDelete: (_uri: string) => boolean;
|
|
198
193
|
uriGet: (_uri: string) => {
|
|
194
|
+
snapshot: ts.IScriptSnapshot;
|
|
199
195
|
version: number;
|
|
200
|
-
fileName: string;
|
|
201
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
202
|
-
snapshotVersion: number | undefined;
|
|
203
196
|
} | undefined;
|
|
204
197
|
uriHas: (_uri: string) => boolean;
|
|
205
198
|
uriSet: (_uri: string, item: {
|
|
199
|
+
snapshot: ts.IScriptSnapshot;
|
|
206
200
|
version: number;
|
|
207
|
-
|
|
208
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
209
|
-
snapshotVersion: number | undefined;
|
|
210
|
-
}) => void;
|
|
201
|
+
} | undefined) => void;
|
|
211
202
|
pathDelete: (path: string) => boolean;
|
|
212
203
|
pathGet: (path: string) => {
|
|
204
|
+
snapshot: ts.IScriptSnapshot;
|
|
213
205
|
version: number;
|
|
214
|
-
fileName: string;
|
|
215
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
216
|
-
snapshotVersion: number | undefined;
|
|
217
206
|
} | undefined;
|
|
218
207
|
pathHas: (path: string) => {
|
|
208
|
+
snapshot: ts.IScriptSnapshot;
|
|
219
209
|
version: number;
|
|
220
|
-
fileName: string;
|
|
221
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
222
|
-
snapshotVersion: number | undefined;
|
|
223
210
|
} | undefined;
|
|
224
211
|
pathSet: (path: string, item: {
|
|
212
|
+
snapshot: ts.IScriptSnapshot;
|
|
225
213
|
version: number;
|
|
226
|
-
|
|
227
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
228
|
-
snapshotVersion: number | undefined;
|
|
229
|
-
}) => void;
|
|
214
|
+
} | undefined) => void;
|
|
230
215
|
};
|
|
231
|
-
|
|
216
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
232
217
|
getLanguageService: () => {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
218
|
+
getTriggerCharacters: () => string[];
|
|
219
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
220
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
221
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
237
222
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
238
223
|
ch: string;
|
|
239
224
|
position: vscode.Position;
|
|
@@ -283,10 +268,10 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
283
268
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
284
269
|
};
|
|
285
270
|
getLanguageServiceDontCreate: () => {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
271
|
+
getTriggerCharacters: () => string[];
|
|
272
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
273
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
274
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
290
275
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
291
276
|
ch: string;
|
|
292
277
|
position: vscode.Position;
|
|
@@ -337,60 +322,60 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
337
322
|
} | undefined;
|
|
338
323
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
339
324
|
tryAddFile: (fileName: string) => void;
|
|
325
|
+
askedFiles: {
|
|
326
|
+
clear: () => void;
|
|
327
|
+
values: () => IterableIterator<boolean>;
|
|
328
|
+
uriDelete: (_uri: string) => boolean;
|
|
329
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
330
|
+
uriHas: (_uri: string) => boolean;
|
|
331
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
332
|
+
pathDelete: (path: string) => boolean;
|
|
333
|
+
pathGet: (path: string) => boolean | undefined;
|
|
334
|
+
pathHas: (path: string) => boolean | undefined;
|
|
335
|
+
pathSet: (path: string, item: boolean) => void;
|
|
336
|
+
};
|
|
340
337
|
dispose: () => void;
|
|
341
338
|
}> | undefined;
|
|
342
339
|
uriHas: (_uri: string) => boolean;
|
|
343
340
|
uriSet: (_uri: string, item: Promise<{
|
|
344
|
-
|
|
345
|
-
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
341
|
+
context: import("./project").ProjectContext;
|
|
342
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
346
343
|
scripts: {
|
|
347
344
|
clear: () => void;
|
|
348
345
|
values: () => IterableIterator<{
|
|
346
|
+
snapshot: ts.IScriptSnapshot;
|
|
349
347
|
version: number;
|
|
350
|
-
|
|
351
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
352
|
-
snapshotVersion: number | undefined;
|
|
353
|
-
}>;
|
|
348
|
+
} | undefined>;
|
|
354
349
|
uriDelete: (_uri: string) => boolean;
|
|
355
350
|
uriGet: (_uri: string) => {
|
|
351
|
+
snapshot: ts.IScriptSnapshot;
|
|
356
352
|
version: number;
|
|
357
|
-
fileName: string;
|
|
358
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
359
|
-
snapshotVersion: number | undefined;
|
|
360
353
|
} | undefined;
|
|
361
354
|
uriHas: (_uri: string) => boolean;
|
|
362
355
|
uriSet: (_uri: string, item: {
|
|
356
|
+
snapshot: ts.IScriptSnapshot;
|
|
363
357
|
version: number;
|
|
364
|
-
|
|
365
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
366
|
-
snapshotVersion: number | undefined;
|
|
367
|
-
}) => void;
|
|
358
|
+
} | undefined) => void;
|
|
368
359
|
pathDelete: (path: string) => boolean;
|
|
369
360
|
pathGet: (path: string) => {
|
|
361
|
+
snapshot: ts.IScriptSnapshot;
|
|
370
362
|
version: number;
|
|
371
|
-
fileName: string;
|
|
372
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
373
|
-
snapshotVersion: number | undefined;
|
|
374
363
|
} | undefined;
|
|
375
364
|
pathHas: (path: string) => {
|
|
365
|
+
snapshot: ts.IScriptSnapshot;
|
|
376
366
|
version: number;
|
|
377
|
-
fileName: string;
|
|
378
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
379
|
-
snapshotVersion: number | undefined;
|
|
380
367
|
} | undefined;
|
|
381
368
|
pathSet: (path: string, item: {
|
|
369
|
+
snapshot: ts.IScriptSnapshot;
|
|
382
370
|
version: number;
|
|
383
|
-
|
|
384
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
385
|
-
snapshotVersion: number | undefined;
|
|
386
|
-
}) => void;
|
|
371
|
+
} | undefined) => void;
|
|
387
372
|
};
|
|
388
|
-
|
|
373
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
389
374
|
getLanguageService: () => {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
375
|
+
getTriggerCharacters: () => string[];
|
|
376
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
377
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
378
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
394
379
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
395
380
|
ch: string;
|
|
396
381
|
position: vscode.Position;
|
|
@@ -440,10 +425,10 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
440
425
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
441
426
|
};
|
|
442
427
|
getLanguageServiceDontCreate: () => {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
428
|
+
getTriggerCharacters: () => string[];
|
|
429
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
430
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
431
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
447
432
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
448
433
|
ch: string;
|
|
449
434
|
position: vscode.Position;
|
|
@@ -494,60 +479,60 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
494
479
|
} | undefined;
|
|
495
480
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
496
481
|
tryAddFile: (fileName: string) => void;
|
|
482
|
+
askedFiles: {
|
|
483
|
+
clear: () => void;
|
|
484
|
+
values: () => IterableIterator<boolean>;
|
|
485
|
+
uriDelete: (_uri: string) => boolean;
|
|
486
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
487
|
+
uriHas: (_uri: string) => boolean;
|
|
488
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
489
|
+
pathDelete: (path: string) => boolean;
|
|
490
|
+
pathGet: (path: string) => boolean | undefined;
|
|
491
|
+
pathHas: (path: string) => boolean | undefined;
|
|
492
|
+
pathSet: (path: string, item: boolean) => void;
|
|
493
|
+
};
|
|
497
494
|
dispose: () => void;
|
|
498
495
|
}>) => void;
|
|
499
496
|
pathDelete: (path: string) => boolean;
|
|
500
497
|
pathGet: (path: string) => Promise<{
|
|
501
|
-
|
|
502
|
-
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
498
|
+
context: import("./project").ProjectContext;
|
|
499
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
503
500
|
scripts: {
|
|
504
501
|
clear: () => void;
|
|
505
502
|
values: () => IterableIterator<{
|
|
503
|
+
snapshot: ts.IScriptSnapshot;
|
|
506
504
|
version: number;
|
|
507
|
-
|
|
508
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
509
|
-
snapshotVersion: number | undefined;
|
|
510
|
-
}>;
|
|
505
|
+
} | undefined>;
|
|
511
506
|
uriDelete: (_uri: string) => boolean;
|
|
512
507
|
uriGet: (_uri: string) => {
|
|
508
|
+
snapshot: ts.IScriptSnapshot;
|
|
513
509
|
version: number;
|
|
514
|
-
fileName: string;
|
|
515
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
516
|
-
snapshotVersion: number | undefined;
|
|
517
510
|
} | undefined;
|
|
518
511
|
uriHas: (_uri: string) => boolean;
|
|
519
512
|
uriSet: (_uri: string, item: {
|
|
513
|
+
snapshot: ts.IScriptSnapshot;
|
|
520
514
|
version: number;
|
|
521
|
-
|
|
522
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
523
|
-
snapshotVersion: number | undefined;
|
|
524
|
-
}) => void;
|
|
515
|
+
} | undefined) => void;
|
|
525
516
|
pathDelete: (path: string) => boolean;
|
|
526
517
|
pathGet: (path: string) => {
|
|
518
|
+
snapshot: ts.IScriptSnapshot;
|
|
527
519
|
version: number;
|
|
528
|
-
fileName: string;
|
|
529
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
530
|
-
snapshotVersion: number | undefined;
|
|
531
520
|
} | undefined;
|
|
532
521
|
pathHas: (path: string) => {
|
|
522
|
+
snapshot: ts.IScriptSnapshot;
|
|
533
523
|
version: number;
|
|
534
|
-
fileName: string;
|
|
535
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
536
|
-
snapshotVersion: number | undefined;
|
|
537
524
|
} | undefined;
|
|
538
525
|
pathSet: (path: string, item: {
|
|
526
|
+
snapshot: ts.IScriptSnapshot;
|
|
539
527
|
version: number;
|
|
540
|
-
|
|
541
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
542
|
-
snapshotVersion: number | undefined;
|
|
543
|
-
}) => void;
|
|
528
|
+
} | undefined) => void;
|
|
544
529
|
};
|
|
545
|
-
|
|
530
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
546
531
|
getLanguageService: () => {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
532
|
+
getTriggerCharacters: () => string[];
|
|
533
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
534
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
535
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
551
536
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
552
537
|
ch: string;
|
|
553
538
|
position: vscode.Position;
|
|
@@ -597,10 +582,10 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
597
582
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
598
583
|
};
|
|
599
584
|
getLanguageServiceDontCreate: () => {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
585
|
+
getTriggerCharacters: () => string[];
|
|
586
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
587
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
588
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
604
589
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
605
590
|
ch: string;
|
|
606
591
|
position: vscode.Position;
|
|
@@ -651,59 +636,59 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
651
636
|
} | undefined;
|
|
652
637
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
653
638
|
tryAddFile: (fileName: string) => void;
|
|
639
|
+
askedFiles: {
|
|
640
|
+
clear: () => void;
|
|
641
|
+
values: () => IterableIterator<boolean>;
|
|
642
|
+
uriDelete: (_uri: string) => boolean;
|
|
643
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
644
|
+
uriHas: (_uri: string) => boolean;
|
|
645
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
646
|
+
pathDelete: (path: string) => boolean;
|
|
647
|
+
pathGet: (path: string) => boolean | undefined;
|
|
648
|
+
pathHas: (path: string) => boolean | undefined;
|
|
649
|
+
pathSet: (path: string, item: boolean) => void;
|
|
650
|
+
};
|
|
654
651
|
dispose: () => void;
|
|
655
652
|
}> | undefined;
|
|
656
653
|
pathHas: (path: string) => Promise<{
|
|
657
|
-
|
|
658
|
-
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
654
|
+
context: import("./project").ProjectContext;
|
|
655
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
659
656
|
scripts: {
|
|
660
657
|
clear: () => void;
|
|
661
658
|
values: () => IterableIterator<{
|
|
659
|
+
snapshot: ts.IScriptSnapshot;
|
|
662
660
|
version: number;
|
|
663
|
-
|
|
664
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
665
|
-
snapshotVersion: number | undefined;
|
|
666
|
-
}>;
|
|
661
|
+
} | undefined>;
|
|
667
662
|
uriDelete: (_uri: string) => boolean;
|
|
668
663
|
uriGet: (_uri: string) => {
|
|
664
|
+
snapshot: ts.IScriptSnapshot;
|
|
669
665
|
version: number;
|
|
670
|
-
fileName: string;
|
|
671
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
672
|
-
snapshotVersion: number | undefined;
|
|
673
666
|
} | undefined;
|
|
674
667
|
uriHas: (_uri: string) => boolean;
|
|
675
668
|
uriSet: (_uri: string, item: {
|
|
669
|
+
snapshot: ts.IScriptSnapshot;
|
|
676
670
|
version: number;
|
|
677
|
-
|
|
678
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
679
|
-
snapshotVersion: number | undefined;
|
|
680
|
-
}) => void;
|
|
671
|
+
} | undefined) => void;
|
|
681
672
|
pathDelete: (path: string) => boolean;
|
|
682
673
|
pathGet: (path: string) => {
|
|
674
|
+
snapshot: ts.IScriptSnapshot;
|
|
683
675
|
version: number;
|
|
684
|
-
fileName: string;
|
|
685
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
686
|
-
snapshotVersion: number | undefined;
|
|
687
676
|
} | undefined;
|
|
688
677
|
pathHas: (path: string) => {
|
|
678
|
+
snapshot: ts.IScriptSnapshot;
|
|
689
679
|
version: number;
|
|
690
|
-
fileName: string;
|
|
691
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
692
|
-
snapshotVersion: number | undefined;
|
|
693
680
|
} | undefined;
|
|
694
681
|
pathSet: (path: string, item: {
|
|
682
|
+
snapshot: ts.IScriptSnapshot;
|
|
695
683
|
version: number;
|
|
696
|
-
|
|
697
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
698
|
-
snapshotVersion: number | undefined;
|
|
699
|
-
}) => void;
|
|
684
|
+
} | undefined) => void;
|
|
700
685
|
};
|
|
701
|
-
|
|
686
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
702
687
|
getLanguageService: () => {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
688
|
+
getTriggerCharacters: () => string[];
|
|
689
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
690
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
691
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
707
692
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
708
693
|
ch: string;
|
|
709
694
|
position: vscode.Position;
|
|
@@ -753,10 +738,10 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
753
738
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
754
739
|
};
|
|
755
740
|
getLanguageServiceDontCreate: () => {
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
741
|
+
getTriggerCharacters: () => string[];
|
|
742
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
743
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
744
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
760
745
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
761
746
|
ch: string;
|
|
762
747
|
position: vscode.Position;
|
|
@@ -807,59 +792,59 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
807
792
|
} | undefined;
|
|
808
793
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
809
794
|
tryAddFile: (fileName: string) => void;
|
|
795
|
+
askedFiles: {
|
|
796
|
+
clear: () => void;
|
|
797
|
+
values: () => IterableIterator<boolean>;
|
|
798
|
+
uriDelete: (_uri: string) => boolean;
|
|
799
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
800
|
+
uriHas: (_uri: string) => boolean;
|
|
801
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
802
|
+
pathDelete: (path: string) => boolean;
|
|
803
|
+
pathGet: (path: string) => boolean | undefined;
|
|
804
|
+
pathHas: (path: string) => boolean | undefined;
|
|
805
|
+
pathSet: (path: string, item: boolean) => void;
|
|
806
|
+
};
|
|
810
807
|
dispose: () => void;
|
|
811
808
|
}> | undefined;
|
|
812
809
|
pathSet: (path: string, item: Promise<{
|
|
813
|
-
|
|
814
|
-
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
810
|
+
context: import("./project").ProjectContext;
|
|
811
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
815
812
|
scripts: {
|
|
816
813
|
clear: () => void;
|
|
817
814
|
values: () => IterableIterator<{
|
|
815
|
+
snapshot: ts.IScriptSnapshot;
|
|
818
816
|
version: number;
|
|
819
|
-
|
|
820
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
821
|
-
snapshotVersion: number | undefined;
|
|
822
|
-
}>;
|
|
817
|
+
} | undefined>;
|
|
823
818
|
uriDelete: (_uri: string) => boolean;
|
|
824
819
|
uriGet: (_uri: string) => {
|
|
820
|
+
snapshot: ts.IScriptSnapshot;
|
|
825
821
|
version: number;
|
|
826
|
-
fileName: string;
|
|
827
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
828
|
-
snapshotVersion: number | undefined;
|
|
829
822
|
} | undefined;
|
|
830
823
|
uriHas: (_uri: string) => boolean;
|
|
831
824
|
uriSet: (_uri: string, item: {
|
|
825
|
+
snapshot: ts.IScriptSnapshot;
|
|
832
826
|
version: number;
|
|
833
|
-
|
|
834
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
835
|
-
snapshotVersion: number | undefined;
|
|
836
|
-
}) => void;
|
|
827
|
+
} | undefined) => void;
|
|
837
828
|
pathDelete: (path: string) => boolean;
|
|
838
829
|
pathGet: (path: string) => {
|
|
830
|
+
snapshot: ts.IScriptSnapshot;
|
|
839
831
|
version: number;
|
|
840
|
-
fileName: string;
|
|
841
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
842
|
-
snapshotVersion: number | undefined;
|
|
843
832
|
} | undefined;
|
|
844
833
|
pathHas: (path: string) => {
|
|
834
|
+
snapshot: ts.IScriptSnapshot;
|
|
845
835
|
version: number;
|
|
846
|
-
fileName: string;
|
|
847
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
848
|
-
snapshotVersion: number | undefined;
|
|
849
836
|
} | undefined;
|
|
850
837
|
pathSet: (path: string, item: {
|
|
838
|
+
snapshot: ts.IScriptSnapshot;
|
|
851
839
|
version: number;
|
|
852
|
-
|
|
853
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
854
|
-
snapshotVersion: number | undefined;
|
|
855
|
-
}) => void;
|
|
840
|
+
} | undefined) => void;
|
|
856
841
|
};
|
|
857
|
-
|
|
842
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
858
843
|
getLanguageService: () => {
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
844
|
+
getTriggerCharacters: () => string[];
|
|
845
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
846
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
847
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
863
848
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
864
849
|
ch: string;
|
|
865
850
|
position: vscode.Position;
|
|
@@ -909,10 +894,10 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
909
894
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
910
895
|
};
|
|
911
896
|
getLanguageServiceDontCreate: () => {
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
897
|
+
getTriggerCharacters: () => string[];
|
|
898
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
899
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
900
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
916
901
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
917
902
|
ch: string;
|
|
918
903
|
position: vscode.Position;
|
|
@@ -963,62 +948,62 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
963
948
|
} | undefined;
|
|
964
949
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
965
950
|
tryAddFile: (fileName: string) => void;
|
|
951
|
+
askedFiles: {
|
|
952
|
+
clear: () => void;
|
|
953
|
+
values: () => IterableIterator<boolean>;
|
|
954
|
+
uriDelete: (_uri: string) => boolean;
|
|
955
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
956
|
+
uriHas: (_uri: string) => boolean;
|
|
957
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
958
|
+
pathDelete: (path: string) => boolean;
|
|
959
|
+
pathGet: (path: string) => boolean | undefined;
|
|
960
|
+
pathHas: (path: string) => boolean | undefined;
|
|
961
|
+
pathSet: (path: string, item: boolean) => void;
|
|
962
|
+
};
|
|
966
963
|
dispose: () => void;
|
|
967
964
|
}>) => void;
|
|
968
965
|
};
|
|
969
966
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
970
967
|
tsconfig: string;
|
|
971
968
|
project: {
|
|
972
|
-
|
|
973
|
-
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
969
|
+
context: import("./project").ProjectContext;
|
|
970
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
974
971
|
scripts: {
|
|
975
972
|
clear: () => void;
|
|
976
973
|
values: () => IterableIterator<{
|
|
974
|
+
snapshot: ts.IScriptSnapshot;
|
|
977
975
|
version: number;
|
|
978
|
-
|
|
979
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
980
|
-
snapshotVersion: number | undefined;
|
|
981
|
-
}>;
|
|
976
|
+
} | undefined>;
|
|
982
977
|
uriDelete: (_uri: string) => boolean;
|
|
983
978
|
uriGet: (_uri: string) => {
|
|
979
|
+
snapshot: ts.IScriptSnapshot;
|
|
984
980
|
version: number;
|
|
985
|
-
fileName: string;
|
|
986
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
987
|
-
snapshotVersion: number | undefined;
|
|
988
981
|
} | undefined;
|
|
989
982
|
uriHas: (_uri: string) => boolean;
|
|
990
983
|
uriSet: (_uri: string, item: {
|
|
984
|
+
snapshot: ts.IScriptSnapshot;
|
|
991
985
|
version: number;
|
|
992
|
-
|
|
993
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
994
|
-
snapshotVersion: number | undefined;
|
|
995
|
-
}) => void;
|
|
986
|
+
} | undefined) => void;
|
|
996
987
|
pathDelete: (path: string) => boolean;
|
|
997
988
|
pathGet: (path: string) => {
|
|
989
|
+
snapshot: ts.IScriptSnapshot;
|
|
998
990
|
version: number;
|
|
999
|
-
fileName: string;
|
|
1000
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1001
|
-
snapshotVersion: number | undefined;
|
|
1002
991
|
} | undefined;
|
|
1003
992
|
pathHas: (path: string) => {
|
|
993
|
+
snapshot: ts.IScriptSnapshot;
|
|
1004
994
|
version: number;
|
|
1005
|
-
fileName: string;
|
|
1006
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1007
|
-
snapshotVersion: number | undefined;
|
|
1008
995
|
} | undefined;
|
|
1009
996
|
pathSet: (path: string, item: {
|
|
997
|
+
snapshot: ts.IScriptSnapshot;
|
|
1010
998
|
version: number;
|
|
1011
|
-
|
|
1012
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1013
|
-
snapshotVersion: number | undefined;
|
|
1014
|
-
}) => void;
|
|
999
|
+
} | undefined) => void;
|
|
1015
1000
|
};
|
|
1016
|
-
|
|
1001
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1017
1002
|
getLanguageService: () => {
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1003
|
+
getTriggerCharacters: () => string[];
|
|
1004
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1005
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1006
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1022
1007
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1023
1008
|
ch: string;
|
|
1024
1009
|
position: vscode.Position;
|
|
@@ -1068,10 +1053,10 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1068
1053
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
1069
1054
|
};
|
|
1070
1055
|
getLanguageServiceDontCreate: () => {
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1056
|
+
getTriggerCharacters: () => string[];
|
|
1057
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1058
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1059
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1075
1060
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1076
1061
|
ch: string;
|
|
1077
1062
|
position: vscode.Position;
|
|
@@ -1122,60 +1107,60 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1122
1107
|
} | undefined;
|
|
1123
1108
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1124
1109
|
tryAddFile: (fileName: string) => void;
|
|
1110
|
+
askedFiles: {
|
|
1111
|
+
clear: () => void;
|
|
1112
|
+
values: () => IterableIterator<boolean>;
|
|
1113
|
+
uriDelete: (_uri: string) => boolean;
|
|
1114
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
1115
|
+
uriHas: (_uri: string) => boolean;
|
|
1116
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
1117
|
+
pathDelete: (path: string) => boolean;
|
|
1118
|
+
pathGet: (path: string) => boolean | undefined;
|
|
1119
|
+
pathHas: (path: string) => boolean | undefined;
|
|
1120
|
+
pathSet: (path: string, item: boolean) => void;
|
|
1121
|
+
};
|
|
1125
1122
|
dispose: () => void;
|
|
1126
1123
|
};
|
|
1127
1124
|
} | undefined>;
|
|
1128
1125
|
getInferredProject: () => Promise<{
|
|
1129
|
-
|
|
1130
|
-
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
1126
|
+
context: import("./project").ProjectContext;
|
|
1127
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
1131
1128
|
scripts: {
|
|
1132
1129
|
clear: () => void;
|
|
1133
1130
|
values: () => IterableIterator<{
|
|
1131
|
+
snapshot: ts.IScriptSnapshot;
|
|
1134
1132
|
version: number;
|
|
1135
|
-
|
|
1136
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1137
|
-
snapshotVersion: number | undefined;
|
|
1138
|
-
}>;
|
|
1133
|
+
} | undefined>;
|
|
1139
1134
|
uriDelete: (_uri: string) => boolean;
|
|
1140
1135
|
uriGet: (_uri: string) => {
|
|
1136
|
+
snapshot: ts.IScriptSnapshot;
|
|
1141
1137
|
version: number;
|
|
1142
|
-
fileName: string;
|
|
1143
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1144
|
-
snapshotVersion: number | undefined;
|
|
1145
1138
|
} | undefined;
|
|
1146
1139
|
uriHas: (_uri: string) => boolean;
|
|
1147
1140
|
uriSet: (_uri: string, item: {
|
|
1141
|
+
snapshot: ts.IScriptSnapshot;
|
|
1148
1142
|
version: number;
|
|
1149
|
-
|
|
1150
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1151
|
-
snapshotVersion: number | undefined;
|
|
1152
|
-
}) => void;
|
|
1143
|
+
} | undefined) => void;
|
|
1153
1144
|
pathDelete: (path: string) => boolean;
|
|
1154
1145
|
pathGet: (path: string) => {
|
|
1146
|
+
snapshot: ts.IScriptSnapshot;
|
|
1155
1147
|
version: number;
|
|
1156
|
-
fileName: string;
|
|
1157
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1158
|
-
snapshotVersion: number | undefined;
|
|
1159
1148
|
} | undefined;
|
|
1160
1149
|
pathHas: (path: string) => {
|
|
1150
|
+
snapshot: ts.IScriptSnapshot;
|
|
1161
1151
|
version: number;
|
|
1162
|
-
fileName: string;
|
|
1163
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1164
|
-
snapshotVersion: number | undefined;
|
|
1165
1152
|
} | undefined;
|
|
1166
1153
|
pathSet: (path: string, item: {
|
|
1154
|
+
snapshot: ts.IScriptSnapshot;
|
|
1167
1155
|
version: number;
|
|
1168
|
-
|
|
1169
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1170
|
-
snapshotVersion: number | undefined;
|
|
1171
|
-
}) => void;
|
|
1156
|
+
} | undefined) => void;
|
|
1172
1157
|
};
|
|
1173
|
-
|
|
1158
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1174
1159
|
getLanguageService: () => {
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1160
|
+
getTriggerCharacters: () => string[];
|
|
1161
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1162
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1163
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1179
1164
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1180
1165
|
ch: string;
|
|
1181
1166
|
position: vscode.Position;
|
|
@@ -1225,10 +1210,10 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1225
1210
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
1226
1211
|
};
|
|
1227
1212
|
getLanguageServiceDontCreate: () => {
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1213
|
+
getTriggerCharacters: () => string[];
|
|
1214
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1215
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1216
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1232
1217
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1233
1218
|
ch: string;
|
|
1234
1219
|
position: vscode.Position;
|
|
@@ -1279,59 +1264,59 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1279
1264
|
} | undefined;
|
|
1280
1265
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1281
1266
|
tryAddFile: (fileName: string) => void;
|
|
1267
|
+
askedFiles: {
|
|
1268
|
+
clear: () => void;
|
|
1269
|
+
values: () => IterableIterator<boolean>;
|
|
1270
|
+
uriDelete: (_uri: string) => boolean;
|
|
1271
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
1272
|
+
uriHas: (_uri: string) => boolean;
|
|
1273
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
1274
|
+
pathDelete: (path: string) => boolean;
|
|
1275
|
+
pathGet: (path: string) => boolean | undefined;
|
|
1276
|
+
pathHas: (path: string) => boolean | undefined;
|
|
1277
|
+
pathSet: (path: string, item: boolean) => void;
|
|
1278
|
+
};
|
|
1282
1279
|
dispose: () => void;
|
|
1283
1280
|
}>;
|
|
1284
1281
|
getInferredProjectDontCreate: () => Promise<{
|
|
1285
|
-
|
|
1286
|
-
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
1282
|
+
context: import("./project").ProjectContext;
|
|
1283
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
1287
1284
|
scripts: {
|
|
1288
1285
|
clear: () => void;
|
|
1289
1286
|
values: () => IterableIterator<{
|
|
1287
|
+
snapshot: ts.IScriptSnapshot;
|
|
1290
1288
|
version: number;
|
|
1291
|
-
|
|
1292
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1293
|
-
snapshotVersion: number | undefined;
|
|
1294
|
-
}>;
|
|
1289
|
+
} | undefined>;
|
|
1295
1290
|
uriDelete: (_uri: string) => boolean;
|
|
1296
1291
|
uriGet: (_uri: string) => {
|
|
1292
|
+
snapshot: ts.IScriptSnapshot;
|
|
1297
1293
|
version: number;
|
|
1298
|
-
fileName: string;
|
|
1299
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1300
|
-
snapshotVersion: number | undefined;
|
|
1301
1294
|
} | undefined;
|
|
1302
1295
|
uriHas: (_uri: string) => boolean;
|
|
1303
1296
|
uriSet: (_uri: string, item: {
|
|
1297
|
+
snapshot: ts.IScriptSnapshot;
|
|
1304
1298
|
version: number;
|
|
1305
|
-
|
|
1306
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1307
|
-
snapshotVersion: number | undefined;
|
|
1308
|
-
}) => void;
|
|
1299
|
+
} | undefined) => void;
|
|
1309
1300
|
pathDelete: (path: string) => boolean;
|
|
1310
1301
|
pathGet: (path: string) => {
|
|
1302
|
+
snapshot: ts.IScriptSnapshot;
|
|
1311
1303
|
version: number;
|
|
1312
|
-
fileName: string;
|
|
1313
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1314
|
-
snapshotVersion: number | undefined;
|
|
1315
1304
|
} | undefined;
|
|
1316
1305
|
pathHas: (path: string) => {
|
|
1306
|
+
snapshot: ts.IScriptSnapshot;
|
|
1317
1307
|
version: number;
|
|
1318
|
-
fileName: string;
|
|
1319
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1320
|
-
snapshotVersion: number | undefined;
|
|
1321
1308
|
} | undefined;
|
|
1322
1309
|
pathSet: (path: string, item: {
|
|
1310
|
+
snapshot: ts.IScriptSnapshot;
|
|
1323
1311
|
version: number;
|
|
1324
|
-
|
|
1325
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1326
|
-
snapshotVersion: number | undefined;
|
|
1327
|
-
}) => void;
|
|
1312
|
+
} | undefined) => void;
|
|
1328
1313
|
};
|
|
1329
|
-
|
|
1314
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1330
1315
|
getLanguageService: () => {
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1316
|
+
getTriggerCharacters: () => string[];
|
|
1317
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1318
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1319
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1335
1320
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1336
1321
|
ch: string;
|
|
1337
1322
|
position: vscode.Position;
|
|
@@ -1381,10 +1366,10 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1381
1366
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
1382
1367
|
};
|
|
1383
1368
|
getLanguageServiceDontCreate: () => {
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1369
|
+
getTriggerCharacters: () => string[];
|
|
1370
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1371
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1372
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1388
1373
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1389
1374
|
ch: string;
|
|
1390
1375
|
position: vscode.Position;
|
|
@@ -1435,6 +1420,18 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1435
1420
|
} | undefined;
|
|
1436
1421
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1437
1422
|
tryAddFile: (fileName: string) => void;
|
|
1423
|
+
askedFiles: {
|
|
1424
|
+
clear: () => void;
|
|
1425
|
+
values: () => IterableIterator<boolean>;
|
|
1426
|
+
uriDelete: (_uri: string) => boolean;
|
|
1427
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
1428
|
+
uriHas: (_uri: string) => boolean;
|
|
1429
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
1430
|
+
pathDelete: (path: string) => boolean;
|
|
1431
|
+
pathGet: (path: string) => boolean | undefined;
|
|
1432
|
+
pathHas: (path: string) => boolean | undefined;
|
|
1433
|
+
pathSet: (path: string, item: boolean) => void;
|
|
1434
|
+
};
|
|
1438
1435
|
dispose: () => void;
|
|
1439
1436
|
}> | undefined;
|
|
1440
1437
|
reload: () => void;
|
|
@@ -1443,56 +1440,44 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1443
1440
|
getProject: (uri: string) => Promise<{
|
|
1444
1441
|
tsconfig: string;
|
|
1445
1442
|
project: {
|
|
1446
|
-
|
|
1447
|
-
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
1443
|
+
context: import("./project").ProjectContext;
|
|
1444
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
1448
1445
|
scripts: {
|
|
1449
1446
|
clear: () => void;
|
|
1450
1447
|
values: () => IterableIterator<{
|
|
1448
|
+
snapshot: ts.IScriptSnapshot;
|
|
1451
1449
|
version: number;
|
|
1452
|
-
|
|
1453
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1454
|
-
snapshotVersion: number | undefined;
|
|
1455
|
-
}>;
|
|
1450
|
+
} | undefined>;
|
|
1456
1451
|
uriDelete: (_uri: string) => boolean;
|
|
1457
1452
|
uriGet: (_uri: string) => {
|
|
1453
|
+
snapshot: ts.IScriptSnapshot;
|
|
1458
1454
|
version: number;
|
|
1459
|
-
fileName: string;
|
|
1460
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1461
|
-
snapshotVersion: number | undefined;
|
|
1462
1455
|
} | undefined;
|
|
1463
1456
|
uriHas: (_uri: string) => boolean;
|
|
1464
1457
|
uriSet: (_uri: string, item: {
|
|
1458
|
+
snapshot: ts.IScriptSnapshot;
|
|
1465
1459
|
version: number;
|
|
1466
|
-
|
|
1467
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1468
|
-
snapshotVersion: number | undefined;
|
|
1469
|
-
}) => void;
|
|
1460
|
+
} | undefined) => void;
|
|
1470
1461
|
pathDelete: (path: string) => boolean;
|
|
1471
1462
|
pathGet: (path: string) => {
|
|
1463
|
+
snapshot: ts.IScriptSnapshot;
|
|
1472
1464
|
version: number;
|
|
1473
|
-
fileName: string;
|
|
1474
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1475
|
-
snapshotVersion: number | undefined;
|
|
1476
1465
|
} | undefined;
|
|
1477
1466
|
pathHas: (path: string) => {
|
|
1467
|
+
snapshot: ts.IScriptSnapshot;
|
|
1478
1468
|
version: number;
|
|
1479
|
-
fileName: string;
|
|
1480
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1481
|
-
snapshotVersion: number | undefined;
|
|
1482
1469
|
} | undefined;
|
|
1483
1470
|
pathSet: (path: string, item: {
|
|
1471
|
+
snapshot: ts.IScriptSnapshot;
|
|
1484
1472
|
version: number;
|
|
1485
|
-
|
|
1486
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1487
|
-
snapshotVersion: number | undefined;
|
|
1488
|
-
}) => void;
|
|
1473
|
+
} | undefined) => void;
|
|
1489
1474
|
};
|
|
1490
|
-
|
|
1475
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1491
1476
|
getLanguageService: () => {
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1477
|
+
getTriggerCharacters: () => string[];
|
|
1478
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1479
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1480
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1496
1481
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1497
1482
|
ch: string;
|
|
1498
1483
|
position: vscode.Position;
|
|
@@ -1542,10 +1527,10 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1542
1527
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
1543
1528
|
};
|
|
1544
1529
|
getLanguageServiceDontCreate: () => {
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1530
|
+
getTriggerCharacters: () => string[];
|
|
1531
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1532
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1533
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1549
1534
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1550
1535
|
ch: string;
|
|
1551
1536
|
position: vscode.Position;
|
|
@@ -1596,61 +1581,61 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1596
1581
|
} | undefined;
|
|
1597
1582
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1598
1583
|
tryAddFile: (fileName: string) => void;
|
|
1584
|
+
askedFiles: {
|
|
1585
|
+
clear: () => void;
|
|
1586
|
+
values: () => IterableIterator<boolean>;
|
|
1587
|
+
uriDelete: (_uri: string) => boolean;
|
|
1588
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
1589
|
+
uriHas: (_uri: string) => boolean;
|
|
1590
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
1591
|
+
pathDelete: (path: string) => boolean;
|
|
1592
|
+
pathGet: (path: string) => boolean | undefined;
|
|
1593
|
+
pathHas: (path: string) => boolean | undefined;
|
|
1594
|
+
pathSet: (path: string, item: boolean) => void;
|
|
1595
|
+
};
|
|
1599
1596
|
dispose: () => void;
|
|
1600
1597
|
};
|
|
1601
1598
|
} | {
|
|
1602
1599
|
tsconfig: undefined;
|
|
1603
1600
|
project: {
|
|
1604
|
-
|
|
1605
|
-
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
1601
|
+
context: import("./project").ProjectContext;
|
|
1602
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
1606
1603
|
scripts: {
|
|
1607
1604
|
clear: () => void;
|
|
1608
1605
|
values: () => IterableIterator<{
|
|
1606
|
+
snapshot: ts.IScriptSnapshot;
|
|
1609
1607
|
version: number;
|
|
1610
|
-
|
|
1611
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1612
|
-
snapshotVersion: number | undefined;
|
|
1613
|
-
}>;
|
|
1608
|
+
} | undefined>;
|
|
1614
1609
|
uriDelete: (_uri: string) => boolean;
|
|
1615
1610
|
uriGet: (_uri: string) => {
|
|
1611
|
+
snapshot: ts.IScriptSnapshot;
|
|
1616
1612
|
version: number;
|
|
1617
|
-
fileName: string;
|
|
1618
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1619
|
-
snapshotVersion: number | undefined;
|
|
1620
1613
|
} | undefined;
|
|
1621
1614
|
uriHas: (_uri: string) => boolean;
|
|
1622
1615
|
uriSet: (_uri: string, item: {
|
|
1616
|
+
snapshot: ts.IScriptSnapshot;
|
|
1623
1617
|
version: number;
|
|
1624
|
-
|
|
1625
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1626
|
-
snapshotVersion: number | undefined;
|
|
1627
|
-
}) => void;
|
|
1618
|
+
} | undefined) => void;
|
|
1628
1619
|
pathDelete: (path: string) => boolean;
|
|
1629
1620
|
pathGet: (path: string) => {
|
|
1621
|
+
snapshot: ts.IScriptSnapshot;
|
|
1630
1622
|
version: number;
|
|
1631
|
-
fileName: string;
|
|
1632
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1633
|
-
snapshotVersion: number | undefined;
|
|
1634
1623
|
} | undefined;
|
|
1635
1624
|
pathHas: (path: string) => {
|
|
1625
|
+
snapshot: ts.IScriptSnapshot;
|
|
1636
1626
|
version: number;
|
|
1637
|
-
fileName: string;
|
|
1638
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1639
|
-
snapshotVersion: number | undefined;
|
|
1640
1627
|
} | undefined;
|
|
1641
1628
|
pathSet: (path: string, item: {
|
|
1629
|
+
snapshot: ts.IScriptSnapshot;
|
|
1642
1630
|
version: number;
|
|
1643
|
-
|
|
1644
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1645
|
-
snapshotVersion: number | undefined;
|
|
1646
|
-
}) => void;
|
|
1631
|
+
} | undefined) => void;
|
|
1647
1632
|
};
|
|
1648
|
-
|
|
1633
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1649
1634
|
getLanguageService: () => {
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1635
|
+
getTriggerCharacters: () => string[];
|
|
1636
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1637
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1638
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1654
1639
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1655
1640
|
ch: string;
|
|
1656
1641
|
position: vscode.Position;
|
|
@@ -1700,10 +1685,10 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1700
1685
|
context: import("@volar/language-service").ServiceContext<any>;
|
|
1701
1686
|
};
|
|
1702
1687
|
getLanguageServiceDontCreate: () => {
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1688
|
+
getTriggerCharacters: () => string[];
|
|
1689
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1690
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1691
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1707
1692
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1708
1693
|
ch: string;
|
|
1709
1694
|
position: vscode.Position;
|
|
@@ -1754,6 +1739,18 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1754
1739
|
} | undefined;
|
|
1755
1740
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1756
1741
|
tryAddFile: (fileName: string) => void;
|
|
1742
|
+
askedFiles: {
|
|
1743
|
+
clear: () => void;
|
|
1744
|
+
values: () => IterableIterator<boolean>;
|
|
1745
|
+
uriDelete: (_uri: string) => boolean;
|
|
1746
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
1747
|
+
uriHas: (_uri: string) => boolean;
|
|
1748
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
1749
|
+
pathDelete: (path: string) => boolean;
|
|
1750
|
+
pathGet: (path: string) => boolean | undefined;
|
|
1751
|
+
pathHas: (path: string) => boolean | undefined;
|
|
1752
|
+
pathSet: (path: string, item: boolean) => void;
|
|
1753
|
+
};
|
|
1757
1754
|
dispose: () => void;
|
|
1758
1755
|
} | undefined;
|
|
1759
1756
|
} | undefined>;
|