@volar/language-server 1.6.9 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +43 -73
- package/out/common/features/languageFeatures.js +5 -5
- package/out/common/project.d.ts +111 -129
- package/out/common/project.js +137 -249
- package/out/common/server.d.ts +5 -1
- package/out/common/server.js +83 -12
- package/out/common/workspace.d.ts +298 -453
- package/out/common/workspace.js +17 -23
- package/out/common/workspaces.d.ts +367 -558
- package/out/common/workspaces.js +3 -6
- package/out/node/index.js +82 -83
- package/out/protocol.d.ts +5 -5
- package/out/protocol.js +5 -5
- package/out/types.d.ts +13 -44
- package/package.json +6 -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,55 +13,26 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
14
13
|
projects: {
|
|
15
14
|
clear: () => void;
|
|
16
15
|
values: () => IterableIterator<Promise<{
|
|
17
|
-
|
|
16
|
+
context: import("./project").ProjectContext;
|
|
17
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
18
18
|
scripts: {
|
|
19
19
|
clear: () => void;
|
|
20
|
-
values: () => IterableIterator<
|
|
21
|
-
version: number;
|
|
22
|
-
fileName: string;
|
|
23
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
24
|
-
snapshotVersion: number | undefined;
|
|
25
|
-
}>;
|
|
20
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
26
21
|
uriDelete: (_uri: string) => boolean;
|
|
27
|
-
uriGet: (_uri: string) =>
|
|
28
|
-
version: number;
|
|
29
|
-
fileName: string;
|
|
30
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
31
|
-
snapshotVersion: number | undefined;
|
|
32
|
-
} | undefined;
|
|
22
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
33
23
|
uriHas: (_uri: string) => boolean;
|
|
34
|
-
uriSet: (_uri: string, item:
|
|
35
|
-
version: number;
|
|
36
|
-
fileName: string;
|
|
37
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
38
|
-
snapshotVersion: number | undefined;
|
|
39
|
-
}) => void;
|
|
24
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
40
25
|
pathDelete: (path: string) => boolean;
|
|
41
|
-
pathGet: (path: string) =>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
45
|
-
snapshotVersion: number | undefined;
|
|
46
|
-
} | undefined;
|
|
47
|
-
pathHas: (path: string) => {
|
|
48
|
-
version: number;
|
|
49
|
-
fileName: string;
|
|
50
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
51
|
-
snapshotVersion: number | undefined;
|
|
52
|
-
} | undefined;
|
|
53
|
-
pathSet: (path: string, item: {
|
|
54
|
-
version: number;
|
|
55
|
-
fileName: string;
|
|
56
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
57
|
-
snapshotVersion: number | undefined;
|
|
58
|
-
}) => void;
|
|
26
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
27
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
28
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
59
29
|
};
|
|
60
|
-
|
|
30
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
61
31
|
getLanguageService: () => {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
32
|
+
getTriggerCharacters: () => string[];
|
|
33
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
34
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
35
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
66
36
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
67
37
|
ch: string;
|
|
68
38
|
position: vscode.Position;
|
|
@@ -108,14 +78,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
108
78
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
109
79
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
110
80
|
};
|
|
111
|
-
dispose: () => void
|
|
112
|
-
context: import("@volar/language-service").ServiceContext
|
|
81
|
+
dispose: () => void;
|
|
82
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
113
83
|
};
|
|
114
84
|
getLanguageServiceDontCreate: () => {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
85
|
+
getTriggerCharacters: () => string[];
|
|
86
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
87
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
88
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
119
89
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
120
90
|
ch: string;
|
|
121
91
|
position: vscode.Position;
|
|
@@ -161,64 +131,47 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
161
131
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
162
132
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
163
133
|
};
|
|
164
|
-
dispose: () => void
|
|
165
|
-
context: import("@volar/language-service").ServiceContext
|
|
134
|
+
dispose: () => void;
|
|
135
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
166
136
|
} | undefined;
|
|
167
137
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
168
138
|
tryAddFile: (fileName: string) => void;
|
|
139
|
+
askedFiles: {
|
|
140
|
+
clear: () => void;
|
|
141
|
+
values: () => IterableIterator<boolean>;
|
|
142
|
+
uriDelete: (_uri: string) => boolean;
|
|
143
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
144
|
+
uriHas: (_uri: string) => boolean;
|
|
145
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
146
|
+
pathDelete: (path: string) => boolean;
|
|
147
|
+
pathGet: (path: string) => boolean | undefined;
|
|
148
|
+
pathHas: (path: string) => boolean | undefined;
|
|
149
|
+
pathSet: (path: string, item: boolean) => void;
|
|
150
|
+
};
|
|
169
151
|
dispose: () => void;
|
|
170
152
|
}>>;
|
|
171
153
|
uriDelete: (_uri: string) => boolean;
|
|
172
154
|
uriGet: (_uri: string) => Promise<{
|
|
173
|
-
|
|
155
|
+
context: import("./project").ProjectContext;
|
|
156
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
174
157
|
scripts: {
|
|
175
158
|
clear: () => void;
|
|
176
|
-
values: () => IterableIterator<
|
|
177
|
-
version: number;
|
|
178
|
-
fileName: string;
|
|
179
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
180
|
-
snapshotVersion: number | undefined;
|
|
181
|
-
}>;
|
|
159
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
182
160
|
uriDelete: (_uri: string) => boolean;
|
|
183
|
-
uriGet: (_uri: string) =>
|
|
184
|
-
version: number;
|
|
185
|
-
fileName: string;
|
|
186
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
187
|
-
snapshotVersion: number | undefined;
|
|
188
|
-
} | undefined;
|
|
161
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
189
162
|
uriHas: (_uri: string) => boolean;
|
|
190
|
-
uriSet: (_uri: string, item:
|
|
191
|
-
version: number;
|
|
192
|
-
fileName: string;
|
|
193
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
194
|
-
snapshotVersion: number | undefined;
|
|
195
|
-
}) => void;
|
|
163
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
196
164
|
pathDelete: (path: string) => boolean;
|
|
197
|
-
pathGet: (path: string) =>
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
201
|
-
snapshotVersion: number | undefined;
|
|
202
|
-
} | undefined;
|
|
203
|
-
pathHas: (path: string) => {
|
|
204
|
-
version: number;
|
|
205
|
-
fileName: string;
|
|
206
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
207
|
-
snapshotVersion: number | undefined;
|
|
208
|
-
} | undefined;
|
|
209
|
-
pathSet: (path: string, item: {
|
|
210
|
-
version: number;
|
|
211
|
-
fileName: string;
|
|
212
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
213
|
-
snapshotVersion: number | undefined;
|
|
214
|
-
}) => void;
|
|
165
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
166
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
167
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
215
168
|
};
|
|
216
|
-
|
|
169
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
217
170
|
getLanguageService: () => {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
171
|
+
getTriggerCharacters: () => string[];
|
|
172
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
173
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
174
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
222
175
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
223
176
|
ch: string;
|
|
224
177
|
position: vscode.Position;
|
|
@@ -264,14 +217,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
264
217
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
265
218
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
266
219
|
};
|
|
267
|
-
dispose: () => void
|
|
268
|
-
context: import("@volar/language-service").ServiceContext
|
|
220
|
+
dispose: () => void;
|
|
221
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
269
222
|
};
|
|
270
223
|
getLanguageServiceDontCreate: () => {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
224
|
+
getTriggerCharacters: () => string[];
|
|
225
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
226
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
227
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
275
228
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
276
229
|
ch: string;
|
|
277
230
|
position: vscode.Position;
|
|
@@ -317,64 +270,47 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
317
270
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
318
271
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
319
272
|
};
|
|
320
|
-
dispose: () => void
|
|
321
|
-
context: import("@volar/language-service").ServiceContext
|
|
273
|
+
dispose: () => void;
|
|
274
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
322
275
|
} | undefined;
|
|
323
276
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
324
277
|
tryAddFile: (fileName: string) => void;
|
|
278
|
+
askedFiles: {
|
|
279
|
+
clear: () => void;
|
|
280
|
+
values: () => IterableIterator<boolean>;
|
|
281
|
+
uriDelete: (_uri: string) => boolean;
|
|
282
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
283
|
+
uriHas: (_uri: string) => boolean;
|
|
284
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
285
|
+
pathDelete: (path: string) => boolean;
|
|
286
|
+
pathGet: (path: string) => boolean | undefined;
|
|
287
|
+
pathHas: (path: string) => boolean | undefined;
|
|
288
|
+
pathSet: (path: string, item: boolean) => void;
|
|
289
|
+
};
|
|
325
290
|
dispose: () => void;
|
|
326
291
|
}> | undefined;
|
|
327
292
|
uriHas: (_uri: string) => boolean;
|
|
328
293
|
uriSet: (_uri: string, item: Promise<{
|
|
329
|
-
|
|
294
|
+
context: import("./project").ProjectContext;
|
|
295
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
330
296
|
scripts: {
|
|
331
297
|
clear: () => void;
|
|
332
|
-
values: () => IterableIterator<
|
|
333
|
-
version: number;
|
|
334
|
-
fileName: string;
|
|
335
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
336
|
-
snapshotVersion: number | undefined;
|
|
337
|
-
}>;
|
|
298
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
338
299
|
uriDelete: (_uri: string) => boolean;
|
|
339
|
-
uriGet: (_uri: string) =>
|
|
340
|
-
version: number;
|
|
341
|
-
fileName: string;
|
|
342
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
343
|
-
snapshotVersion: number | undefined;
|
|
344
|
-
} | undefined;
|
|
300
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
345
301
|
uriHas: (_uri: string) => boolean;
|
|
346
|
-
uriSet: (_uri: string, item:
|
|
347
|
-
version: number;
|
|
348
|
-
fileName: string;
|
|
349
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
350
|
-
snapshotVersion: number | undefined;
|
|
351
|
-
}) => void;
|
|
302
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
352
303
|
pathDelete: (path: string) => boolean;
|
|
353
|
-
pathGet: (path: string) =>
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
357
|
-
snapshotVersion: number | undefined;
|
|
358
|
-
} | undefined;
|
|
359
|
-
pathHas: (path: string) => {
|
|
360
|
-
version: number;
|
|
361
|
-
fileName: string;
|
|
362
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
363
|
-
snapshotVersion: number | undefined;
|
|
364
|
-
} | undefined;
|
|
365
|
-
pathSet: (path: string, item: {
|
|
366
|
-
version: number;
|
|
367
|
-
fileName: string;
|
|
368
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
369
|
-
snapshotVersion: number | undefined;
|
|
370
|
-
}) => void;
|
|
304
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
305
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
306
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
371
307
|
};
|
|
372
|
-
|
|
308
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
373
309
|
getLanguageService: () => {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
310
|
+
getTriggerCharacters: () => string[];
|
|
311
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
312
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
313
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
378
314
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
379
315
|
ch: string;
|
|
380
316
|
position: vscode.Position;
|
|
@@ -420,14 +356,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
420
356
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
421
357
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
422
358
|
};
|
|
423
|
-
dispose: () => void
|
|
424
|
-
context: import("@volar/language-service").ServiceContext
|
|
359
|
+
dispose: () => void;
|
|
360
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
425
361
|
};
|
|
426
362
|
getLanguageServiceDontCreate: () => {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
363
|
+
getTriggerCharacters: () => string[];
|
|
364
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
365
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
366
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
431
367
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
432
368
|
ch: string;
|
|
433
369
|
position: vscode.Position;
|
|
@@ -473,64 +409,47 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
473
409
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
474
410
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
475
411
|
};
|
|
476
|
-
dispose: () => void
|
|
477
|
-
context: import("@volar/language-service").ServiceContext
|
|
412
|
+
dispose: () => void;
|
|
413
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
478
414
|
} | undefined;
|
|
479
415
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
480
416
|
tryAddFile: (fileName: string) => void;
|
|
417
|
+
askedFiles: {
|
|
418
|
+
clear: () => void;
|
|
419
|
+
values: () => IterableIterator<boolean>;
|
|
420
|
+
uriDelete: (_uri: string) => boolean;
|
|
421
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
422
|
+
uriHas: (_uri: string) => boolean;
|
|
423
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
424
|
+
pathDelete: (path: string) => boolean;
|
|
425
|
+
pathGet: (path: string) => boolean | undefined;
|
|
426
|
+
pathHas: (path: string) => boolean | undefined;
|
|
427
|
+
pathSet: (path: string, item: boolean) => void;
|
|
428
|
+
};
|
|
481
429
|
dispose: () => void;
|
|
482
430
|
}>) => void;
|
|
483
431
|
pathDelete: (path: string) => boolean;
|
|
484
432
|
pathGet: (path: string) => Promise<{
|
|
485
|
-
|
|
433
|
+
context: import("./project").ProjectContext;
|
|
434
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
486
435
|
scripts: {
|
|
487
436
|
clear: () => void;
|
|
488
|
-
values: () => IterableIterator<
|
|
489
|
-
version: number;
|
|
490
|
-
fileName: string;
|
|
491
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
492
|
-
snapshotVersion: number | undefined;
|
|
493
|
-
}>;
|
|
437
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
494
438
|
uriDelete: (_uri: string) => boolean;
|
|
495
|
-
uriGet: (_uri: string) =>
|
|
496
|
-
version: number;
|
|
497
|
-
fileName: string;
|
|
498
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
499
|
-
snapshotVersion: number | undefined;
|
|
500
|
-
} | undefined;
|
|
439
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
501
440
|
uriHas: (_uri: string) => boolean;
|
|
502
|
-
uriSet: (_uri: string, item:
|
|
503
|
-
version: number;
|
|
504
|
-
fileName: string;
|
|
505
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
506
|
-
snapshotVersion: number | undefined;
|
|
507
|
-
}) => void;
|
|
441
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
508
442
|
pathDelete: (path: string) => boolean;
|
|
509
|
-
pathGet: (path: string) =>
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
513
|
-
snapshotVersion: number | undefined;
|
|
514
|
-
} | undefined;
|
|
515
|
-
pathHas: (path: string) => {
|
|
516
|
-
version: number;
|
|
517
|
-
fileName: string;
|
|
518
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
519
|
-
snapshotVersion: number | undefined;
|
|
520
|
-
} | undefined;
|
|
521
|
-
pathSet: (path: string, item: {
|
|
522
|
-
version: number;
|
|
523
|
-
fileName: string;
|
|
524
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
525
|
-
snapshotVersion: number | undefined;
|
|
526
|
-
}) => void;
|
|
443
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
444
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
445
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
527
446
|
};
|
|
528
|
-
|
|
447
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
529
448
|
getLanguageService: () => {
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
449
|
+
getTriggerCharacters: () => string[];
|
|
450
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
451
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
452
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
534
453
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
535
454
|
ch: string;
|
|
536
455
|
position: vscode.Position;
|
|
@@ -576,14 +495,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
576
495
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
577
496
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
578
497
|
};
|
|
579
|
-
dispose: () => void
|
|
580
|
-
context: import("@volar/language-service").ServiceContext
|
|
498
|
+
dispose: () => void;
|
|
499
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
581
500
|
};
|
|
582
501
|
getLanguageServiceDontCreate: () => {
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
502
|
+
getTriggerCharacters: () => string[];
|
|
503
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
504
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
505
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
587
506
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
588
507
|
ch: string;
|
|
589
508
|
position: vscode.Position;
|
|
@@ -629,63 +548,46 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
629
548
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
630
549
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
631
550
|
};
|
|
632
|
-
dispose: () => void
|
|
633
|
-
context: import("@volar/language-service").ServiceContext
|
|
551
|
+
dispose: () => void;
|
|
552
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
634
553
|
} | undefined;
|
|
635
554
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
636
555
|
tryAddFile: (fileName: string) => void;
|
|
556
|
+
askedFiles: {
|
|
557
|
+
clear: () => void;
|
|
558
|
+
values: () => IterableIterator<boolean>;
|
|
559
|
+
uriDelete: (_uri: string) => boolean;
|
|
560
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
561
|
+
uriHas: (_uri: string) => boolean;
|
|
562
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
563
|
+
pathDelete: (path: string) => boolean;
|
|
564
|
+
pathGet: (path: string) => boolean | undefined;
|
|
565
|
+
pathHas: (path: string) => boolean | undefined;
|
|
566
|
+
pathSet: (path: string, item: boolean) => void;
|
|
567
|
+
};
|
|
637
568
|
dispose: () => void;
|
|
638
569
|
}> | undefined;
|
|
639
570
|
pathHas: (path: string) => Promise<{
|
|
640
|
-
|
|
571
|
+
context: import("./project").ProjectContext;
|
|
572
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
641
573
|
scripts: {
|
|
642
574
|
clear: () => void;
|
|
643
|
-
values: () => IterableIterator<
|
|
644
|
-
version: number;
|
|
645
|
-
fileName: string;
|
|
646
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
647
|
-
snapshotVersion: number | undefined;
|
|
648
|
-
}>;
|
|
575
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
649
576
|
uriDelete: (_uri: string) => boolean;
|
|
650
|
-
uriGet: (_uri: string) =>
|
|
651
|
-
version: number;
|
|
652
|
-
fileName: string;
|
|
653
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
654
|
-
snapshotVersion: number | undefined;
|
|
655
|
-
} | undefined;
|
|
577
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
656
578
|
uriHas: (_uri: string) => boolean;
|
|
657
|
-
uriSet: (_uri: string, item:
|
|
658
|
-
version: number;
|
|
659
|
-
fileName: string;
|
|
660
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
661
|
-
snapshotVersion: number | undefined;
|
|
662
|
-
}) => void;
|
|
579
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
663
580
|
pathDelete: (path: string) => boolean;
|
|
664
|
-
pathGet: (path: string) =>
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
668
|
-
snapshotVersion: number | undefined;
|
|
669
|
-
} | undefined;
|
|
670
|
-
pathHas: (path: string) => {
|
|
671
|
-
version: number;
|
|
672
|
-
fileName: string;
|
|
673
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
674
|
-
snapshotVersion: number | undefined;
|
|
675
|
-
} | undefined;
|
|
676
|
-
pathSet: (path: string, item: {
|
|
677
|
-
version: number;
|
|
678
|
-
fileName: string;
|
|
679
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
680
|
-
snapshotVersion: number | undefined;
|
|
681
|
-
}) => void;
|
|
581
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
582
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
583
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
682
584
|
};
|
|
683
|
-
|
|
585
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
684
586
|
getLanguageService: () => {
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
587
|
+
getTriggerCharacters: () => string[];
|
|
588
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
589
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
590
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
689
591
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
690
592
|
ch: string;
|
|
691
593
|
position: vscode.Position;
|
|
@@ -731,14 +633,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
731
633
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
732
634
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
733
635
|
};
|
|
734
|
-
dispose: () => void
|
|
735
|
-
context: import("@volar/language-service").ServiceContext
|
|
636
|
+
dispose: () => void;
|
|
637
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
736
638
|
};
|
|
737
639
|
getLanguageServiceDontCreate: () => {
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
640
|
+
getTriggerCharacters: () => string[];
|
|
641
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
642
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
643
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
742
644
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
743
645
|
ch: string;
|
|
744
646
|
position: vscode.Position;
|
|
@@ -784,63 +686,46 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
784
686
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
785
687
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
786
688
|
};
|
|
787
|
-
dispose: () => void
|
|
788
|
-
context: import("@volar/language-service").ServiceContext
|
|
689
|
+
dispose: () => void;
|
|
690
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
789
691
|
} | undefined;
|
|
790
692
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
791
693
|
tryAddFile: (fileName: string) => void;
|
|
694
|
+
askedFiles: {
|
|
695
|
+
clear: () => void;
|
|
696
|
+
values: () => IterableIterator<boolean>;
|
|
697
|
+
uriDelete: (_uri: string) => boolean;
|
|
698
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
699
|
+
uriHas: (_uri: string) => boolean;
|
|
700
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
701
|
+
pathDelete: (path: string) => boolean;
|
|
702
|
+
pathGet: (path: string) => boolean | undefined;
|
|
703
|
+
pathHas: (path: string) => boolean | undefined;
|
|
704
|
+
pathSet: (path: string, item: boolean) => void;
|
|
705
|
+
};
|
|
792
706
|
dispose: () => void;
|
|
793
707
|
}> | undefined;
|
|
794
708
|
pathSet: (path: string, item: Promise<{
|
|
795
|
-
|
|
709
|
+
context: import("./project").ProjectContext;
|
|
710
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
796
711
|
scripts: {
|
|
797
712
|
clear: () => void;
|
|
798
|
-
values: () => IterableIterator<
|
|
799
|
-
version: number;
|
|
800
|
-
fileName: string;
|
|
801
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
802
|
-
snapshotVersion: number | undefined;
|
|
803
|
-
}>;
|
|
713
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
804
714
|
uriDelete: (_uri: string) => boolean;
|
|
805
|
-
uriGet: (_uri: string) =>
|
|
806
|
-
version: number;
|
|
807
|
-
fileName: string;
|
|
808
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
809
|
-
snapshotVersion: number | undefined;
|
|
810
|
-
} | undefined;
|
|
715
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
811
716
|
uriHas: (_uri: string) => boolean;
|
|
812
|
-
uriSet: (_uri: string, item:
|
|
813
|
-
version: number;
|
|
814
|
-
fileName: string;
|
|
815
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
816
|
-
snapshotVersion: number | undefined;
|
|
817
|
-
}) => void;
|
|
717
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
818
718
|
pathDelete: (path: string) => boolean;
|
|
819
|
-
pathGet: (path: string) =>
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
823
|
-
snapshotVersion: number | undefined;
|
|
824
|
-
} | undefined;
|
|
825
|
-
pathHas: (path: string) => {
|
|
826
|
-
version: number;
|
|
827
|
-
fileName: string;
|
|
828
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
829
|
-
snapshotVersion: number | undefined;
|
|
830
|
-
} | undefined;
|
|
831
|
-
pathSet: (path: string, item: {
|
|
832
|
-
version: number;
|
|
833
|
-
fileName: string;
|
|
834
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
835
|
-
snapshotVersion: number | undefined;
|
|
836
|
-
}) => void;
|
|
719
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
720
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
721
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
837
722
|
};
|
|
838
|
-
|
|
723
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
839
724
|
getLanguageService: () => {
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
725
|
+
getTriggerCharacters: () => string[];
|
|
726
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
727
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
728
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
844
729
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
845
730
|
ch: string;
|
|
846
731
|
position: vscode.Position;
|
|
@@ -886,14 +771,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
886
771
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
887
772
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
888
773
|
};
|
|
889
|
-
dispose: () => void
|
|
890
|
-
context: import("@volar/language-service").ServiceContext
|
|
774
|
+
dispose: () => void;
|
|
775
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
891
776
|
};
|
|
892
777
|
getLanguageServiceDontCreate: () => {
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
778
|
+
getTriggerCharacters: () => string[];
|
|
779
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
780
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
781
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
897
782
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
898
783
|
ch: string;
|
|
899
784
|
position: vscode.Position;
|
|
@@ -939,67 +824,49 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
939
824
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
940
825
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
941
826
|
};
|
|
942
|
-
dispose: () => void
|
|
943
|
-
context: import("@volar/language-service").ServiceContext
|
|
827
|
+
dispose: () => void;
|
|
828
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
944
829
|
} | undefined;
|
|
945
830
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
946
831
|
tryAddFile: (fileName: string) => void;
|
|
832
|
+
askedFiles: {
|
|
833
|
+
clear: () => void;
|
|
834
|
+
values: () => IterableIterator<boolean>;
|
|
835
|
+
uriDelete: (_uri: string) => boolean;
|
|
836
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
837
|
+
uriHas: (_uri: string) => boolean;
|
|
838
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
839
|
+
pathDelete: (path: string) => boolean;
|
|
840
|
+
pathGet: (path: string) => boolean | undefined;
|
|
841
|
+
pathHas: (path: string) => boolean | undefined;
|
|
842
|
+
pathSet: (path: string, item: boolean) => void;
|
|
843
|
+
};
|
|
947
844
|
dispose: () => void;
|
|
948
845
|
}>) => void;
|
|
949
846
|
};
|
|
950
|
-
documentRegistry: ts.DocumentRegistry | undefined;
|
|
951
847
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
952
848
|
tsconfig: string;
|
|
953
849
|
project: {
|
|
954
|
-
|
|
850
|
+
context: import("./project").ProjectContext;
|
|
851
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
955
852
|
scripts: {
|
|
956
853
|
clear: () => void;
|
|
957
|
-
values: () => IterableIterator<
|
|
958
|
-
version: number;
|
|
959
|
-
fileName: string;
|
|
960
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
961
|
-
snapshotVersion: number | undefined;
|
|
962
|
-
}>;
|
|
854
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
963
855
|
uriDelete: (_uri: string) => boolean;
|
|
964
|
-
uriGet: (_uri: string) =>
|
|
965
|
-
version: number;
|
|
966
|
-
fileName: string;
|
|
967
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
968
|
-
snapshotVersion: number | undefined;
|
|
969
|
-
} | undefined;
|
|
856
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
970
857
|
uriHas: (_uri: string) => boolean;
|
|
971
|
-
uriSet: (_uri: string, item:
|
|
972
|
-
version: number;
|
|
973
|
-
fileName: string;
|
|
974
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
975
|
-
snapshotVersion: number | undefined;
|
|
976
|
-
}) => void;
|
|
858
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
977
859
|
pathDelete: (path: string) => boolean;
|
|
978
|
-
pathGet: (path: string) =>
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
982
|
-
snapshotVersion: number | undefined;
|
|
983
|
-
} | undefined;
|
|
984
|
-
pathHas: (path: string) => {
|
|
985
|
-
version: number;
|
|
986
|
-
fileName: string;
|
|
987
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
988
|
-
snapshotVersion: number | undefined;
|
|
989
|
-
} | undefined;
|
|
990
|
-
pathSet: (path: string, item: {
|
|
991
|
-
version: number;
|
|
992
|
-
fileName: string;
|
|
993
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
994
|
-
snapshotVersion: number | undefined;
|
|
995
|
-
}) => void;
|
|
860
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
861
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
862
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
996
863
|
};
|
|
997
|
-
|
|
864
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
998
865
|
getLanguageService: () => {
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
866
|
+
getTriggerCharacters: () => string[];
|
|
867
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
868
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
869
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1003
870
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1004
871
|
ch: string;
|
|
1005
872
|
position: vscode.Position;
|
|
@@ -1045,14 +912,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1045
912
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1046
913
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1047
914
|
};
|
|
1048
|
-
dispose: () => void
|
|
1049
|
-
context: import("@volar/language-service").ServiceContext
|
|
915
|
+
dispose: () => void;
|
|
916
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1050
917
|
};
|
|
1051
918
|
getLanguageServiceDontCreate: () => {
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
919
|
+
getTriggerCharacters: () => string[];
|
|
920
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
921
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
922
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1056
923
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1057
924
|
ch: string;
|
|
1058
925
|
position: vscode.Position;
|
|
@@ -1098,64 +965,47 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1098
965
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1099
966
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1100
967
|
};
|
|
1101
|
-
dispose: () => void
|
|
1102
|
-
context: import("@volar/language-service").ServiceContext
|
|
968
|
+
dispose: () => void;
|
|
969
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1103
970
|
} | undefined;
|
|
1104
971
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1105
972
|
tryAddFile: (fileName: string) => void;
|
|
973
|
+
askedFiles: {
|
|
974
|
+
clear: () => void;
|
|
975
|
+
values: () => IterableIterator<boolean>;
|
|
976
|
+
uriDelete: (_uri: string) => boolean;
|
|
977
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
978
|
+
uriHas: (_uri: string) => boolean;
|
|
979
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
980
|
+
pathDelete: (path: string) => boolean;
|
|
981
|
+
pathGet: (path: string) => boolean | undefined;
|
|
982
|
+
pathHas: (path: string) => boolean | undefined;
|
|
983
|
+
pathSet: (path: string, item: boolean) => void;
|
|
984
|
+
};
|
|
1106
985
|
dispose: () => void;
|
|
1107
|
-
}
|
|
986
|
+
};
|
|
1108
987
|
} | undefined>;
|
|
1109
988
|
getInferredProject: () => Promise<{
|
|
1110
|
-
|
|
989
|
+
context: import("./project").ProjectContext;
|
|
990
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
1111
991
|
scripts: {
|
|
1112
992
|
clear: () => void;
|
|
1113
|
-
values: () => IterableIterator<
|
|
1114
|
-
version: number;
|
|
1115
|
-
fileName: string;
|
|
1116
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1117
|
-
snapshotVersion: number | undefined;
|
|
1118
|
-
}>;
|
|
993
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
1119
994
|
uriDelete: (_uri: string) => boolean;
|
|
1120
|
-
uriGet: (_uri: string) =>
|
|
1121
|
-
version: number;
|
|
1122
|
-
fileName: string;
|
|
1123
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1124
|
-
snapshotVersion: number | undefined;
|
|
1125
|
-
} | undefined;
|
|
995
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
1126
996
|
uriHas: (_uri: string) => boolean;
|
|
1127
|
-
uriSet: (_uri: string, item:
|
|
1128
|
-
version: number;
|
|
1129
|
-
fileName: string;
|
|
1130
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1131
|
-
snapshotVersion: number | undefined;
|
|
1132
|
-
}) => void;
|
|
997
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1133
998
|
pathDelete: (path: string) => boolean;
|
|
1134
|
-
pathGet: (path: string) =>
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1138
|
-
snapshotVersion: number | undefined;
|
|
1139
|
-
} | undefined;
|
|
1140
|
-
pathHas: (path: string) => {
|
|
1141
|
-
version: number;
|
|
1142
|
-
fileName: string;
|
|
1143
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1144
|
-
snapshotVersion: number | undefined;
|
|
1145
|
-
} | undefined;
|
|
1146
|
-
pathSet: (path: string, item: {
|
|
1147
|
-
version: number;
|
|
1148
|
-
fileName: string;
|
|
1149
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1150
|
-
snapshotVersion: number | undefined;
|
|
1151
|
-
}) => void;
|
|
999
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1000
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1001
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1152
1002
|
};
|
|
1153
|
-
|
|
1003
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
1154
1004
|
getLanguageService: () => {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1005
|
+
getTriggerCharacters: () => string[];
|
|
1006
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1007
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1008
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1159
1009
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1160
1010
|
ch: string;
|
|
1161
1011
|
position: vscode.Position;
|
|
@@ -1201,14 +1051,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1201
1051
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1202
1052
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1203
1053
|
};
|
|
1204
|
-
dispose: () => void
|
|
1205
|
-
context: import("@volar/language-service").ServiceContext
|
|
1054
|
+
dispose: () => void;
|
|
1055
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1206
1056
|
};
|
|
1207
1057
|
getLanguageServiceDontCreate: () => {
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1058
|
+
getTriggerCharacters: () => string[];
|
|
1059
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1060
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1061
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1212
1062
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1213
1063
|
ch: string;
|
|
1214
1064
|
position: vscode.Position;
|
|
@@ -1254,63 +1104,46 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1254
1104
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1255
1105
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1256
1106
|
};
|
|
1257
|
-
dispose: () => void
|
|
1258
|
-
context: import("@volar/language-service").ServiceContext
|
|
1107
|
+
dispose: () => void;
|
|
1108
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1259
1109
|
} | undefined;
|
|
1260
1110
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1261
1111
|
tryAddFile: (fileName: string) => void;
|
|
1112
|
+
askedFiles: {
|
|
1113
|
+
clear: () => void;
|
|
1114
|
+
values: () => IterableIterator<boolean>;
|
|
1115
|
+
uriDelete: (_uri: string) => boolean;
|
|
1116
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
1117
|
+
uriHas: (_uri: string) => boolean;
|
|
1118
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
1119
|
+
pathDelete: (path: string) => boolean;
|
|
1120
|
+
pathGet: (path: string) => boolean | undefined;
|
|
1121
|
+
pathHas: (path: string) => boolean | undefined;
|
|
1122
|
+
pathSet: (path: string, item: boolean) => void;
|
|
1123
|
+
};
|
|
1262
1124
|
dispose: () => void;
|
|
1263
1125
|
}>;
|
|
1264
1126
|
getInferredProjectDontCreate: () => Promise<{
|
|
1265
|
-
|
|
1127
|
+
context: import("./project").ProjectContext;
|
|
1128
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
1266
1129
|
scripts: {
|
|
1267
1130
|
clear: () => void;
|
|
1268
|
-
values: () => IterableIterator<
|
|
1269
|
-
version: number;
|
|
1270
|
-
fileName: string;
|
|
1271
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1272
|
-
snapshotVersion: number | undefined;
|
|
1273
|
-
}>;
|
|
1131
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
1274
1132
|
uriDelete: (_uri: string) => boolean;
|
|
1275
|
-
uriGet: (_uri: string) =>
|
|
1276
|
-
version: number;
|
|
1277
|
-
fileName: string;
|
|
1278
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1279
|
-
snapshotVersion: number | undefined;
|
|
1280
|
-
} | undefined;
|
|
1133
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
1281
1134
|
uriHas: (_uri: string) => boolean;
|
|
1282
|
-
uriSet: (_uri: string, item:
|
|
1283
|
-
version: number;
|
|
1284
|
-
fileName: string;
|
|
1285
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1286
|
-
snapshotVersion: number | undefined;
|
|
1287
|
-
}) => void;
|
|
1135
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1288
1136
|
pathDelete: (path: string) => boolean;
|
|
1289
|
-
pathGet: (path: string) =>
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1293
|
-
snapshotVersion: number | undefined;
|
|
1294
|
-
} | undefined;
|
|
1295
|
-
pathHas: (path: string) => {
|
|
1296
|
-
version: number;
|
|
1297
|
-
fileName: string;
|
|
1298
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1299
|
-
snapshotVersion: number | undefined;
|
|
1300
|
-
} | undefined;
|
|
1301
|
-
pathSet: (path: string, item: {
|
|
1302
|
-
version: number;
|
|
1303
|
-
fileName: string;
|
|
1304
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1305
|
-
snapshotVersion: number | undefined;
|
|
1306
|
-
}) => void;
|
|
1137
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1138
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1139
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1307
1140
|
};
|
|
1308
|
-
|
|
1141
|
+
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
1309
1142
|
getLanguageService: () => {
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1143
|
+
getTriggerCharacters: () => string[];
|
|
1144
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1145
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1146
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1314
1147
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1315
1148
|
ch: string;
|
|
1316
1149
|
position: vscode.Position;
|
|
@@ -1356,14 +1189,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1356
1189
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1357
1190
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1358
1191
|
};
|
|
1359
|
-
dispose: () => void
|
|
1360
|
-
context: import("@volar/language-service").ServiceContext
|
|
1192
|
+
dispose: () => void;
|
|
1193
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1361
1194
|
};
|
|
1362
1195
|
getLanguageServiceDontCreate: () => {
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1196
|
+
getTriggerCharacters: () => string[];
|
|
1197
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1198
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1199
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1367
1200
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1368
1201
|
ch: string;
|
|
1369
1202
|
position: vscode.Position;
|
|
@@ -1409,11 +1242,23 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1409
1242
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1410
1243
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1411
1244
|
};
|
|
1412
|
-
dispose: () => void
|
|
1413
|
-
context: import("@volar/language-service").ServiceContext
|
|
1245
|
+
dispose: () => void;
|
|
1246
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1414
1247
|
} | undefined;
|
|
1415
1248
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1416
1249
|
tryAddFile: (fileName: string) => void;
|
|
1250
|
+
askedFiles: {
|
|
1251
|
+
clear: () => void;
|
|
1252
|
+
values: () => IterableIterator<boolean>;
|
|
1253
|
+
uriDelete: (_uri: string) => boolean;
|
|
1254
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
1255
|
+
uriHas: (_uri: string) => boolean;
|
|
1256
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
1257
|
+
pathDelete: (path: string) => boolean;
|
|
1258
|
+
pathGet: (path: string) => boolean | undefined;
|
|
1259
|
+
pathHas: (path: string) => boolean | undefined;
|
|
1260
|
+
pathSet: (path: string, item: boolean) => void;
|
|
1261
|
+
};
|
|
1417
1262
|
dispose: () => void;
|
|
1418
1263
|
}> | undefined;
|
|
1419
1264
|
reload: () => void;
|