@volar/language-server 1.6.9 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +30 -60
- package/out/common/features/languageFeatures.js +5 -5
- package/out/common/project.d.ts +115 -115
- package/out/common/project.js +150 -248
- package/out/common/server.d.ts +5 -1
- package/out/common/server.js +83 -12
- package/out/common/workspace.d.ts +325 -318
- package/out/common/workspace.js +17 -23
- package/out/common/workspaces.d.ts +400 -393
- 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 +16 -16
- package/out/types.d.ts +13 -44
- package/out/types.js +2 -2
- package/package.json +6 -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,55 +24,44 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
27
24
|
projects: {
|
|
28
25
|
clear: () => void;
|
|
29
26
|
values: () => IterableIterator<Promise<{
|
|
30
|
-
|
|
27
|
+
context: import("./project").ProjectContext;
|
|
28
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
31
29
|
scripts: {
|
|
32
30
|
clear: () => void;
|
|
33
31
|
values: () => IterableIterator<{
|
|
32
|
+
snapshot: ts.IScriptSnapshot;
|
|
34
33
|
version: number;
|
|
35
|
-
|
|
36
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
37
|
-
snapshotVersion: number | undefined;
|
|
38
|
-
}>;
|
|
34
|
+
} | undefined>;
|
|
39
35
|
uriDelete: (_uri: string) => boolean;
|
|
40
36
|
uriGet: (_uri: string) => {
|
|
37
|
+
snapshot: ts.IScriptSnapshot;
|
|
41
38
|
version: number;
|
|
42
|
-
fileName: string;
|
|
43
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
44
|
-
snapshotVersion: number | undefined;
|
|
45
39
|
} | undefined;
|
|
46
40
|
uriHas: (_uri: string) => boolean;
|
|
47
41
|
uriSet: (_uri: string, item: {
|
|
42
|
+
snapshot: ts.IScriptSnapshot;
|
|
48
43
|
version: number;
|
|
49
|
-
|
|
50
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
51
|
-
snapshotVersion: number | undefined;
|
|
52
|
-
}) => void;
|
|
44
|
+
} | undefined) => void;
|
|
53
45
|
pathDelete: (path: string) => boolean;
|
|
54
46
|
pathGet: (path: string) => {
|
|
47
|
+
snapshot: ts.IScriptSnapshot;
|
|
55
48
|
version: number;
|
|
56
|
-
fileName: string;
|
|
57
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
58
|
-
snapshotVersion: number | undefined;
|
|
59
49
|
} | undefined;
|
|
60
50
|
pathHas: (path: string) => {
|
|
51
|
+
snapshot: ts.IScriptSnapshot;
|
|
61
52
|
version: number;
|
|
62
|
-
fileName: string;
|
|
63
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
64
|
-
snapshotVersion: number | undefined;
|
|
65
53
|
} | undefined;
|
|
66
54
|
pathSet: (path: string, item: {
|
|
55
|
+
snapshot: ts.IScriptSnapshot;
|
|
67
56
|
version: number;
|
|
68
|
-
|
|
69
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
70
|
-
snapshotVersion: number | undefined;
|
|
71
|
-
}) => void;
|
|
57
|
+
} | undefined) => void;
|
|
72
58
|
};
|
|
73
|
-
|
|
59
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
74
60
|
getLanguageService: () => {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
61
|
+
getTriggerCharacters: () => string[];
|
|
62
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
63
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
64
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
79
65
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
80
66
|
ch: string;
|
|
81
67
|
position: vscode.Position;
|
|
@@ -121,14 +107,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
121
107
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
122
108
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
123
109
|
};
|
|
124
|
-
dispose: () => void
|
|
125
|
-
context: import("@volar/language-service").ServiceContext
|
|
110
|
+
dispose: () => void;
|
|
111
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
126
112
|
};
|
|
127
113
|
getLanguageServiceDontCreate: () => {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
114
|
+
getTriggerCharacters: () => string[];
|
|
115
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
116
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
117
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
132
118
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
133
119
|
ch: string;
|
|
134
120
|
position: vscode.Position;
|
|
@@ -174,64 +160,65 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
174
160
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
175
161
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
176
162
|
};
|
|
177
|
-
dispose: () => void
|
|
178
|
-
context: import("@volar/language-service").ServiceContext
|
|
163
|
+
dispose: () => void;
|
|
164
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
179
165
|
} | undefined;
|
|
180
166
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
181
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
|
+
};
|
|
182
180
|
dispose: () => void;
|
|
183
181
|
}>>;
|
|
184
182
|
uriDelete: (_uri: string) => boolean;
|
|
185
183
|
uriGet: (_uri: string) => Promise<{
|
|
186
|
-
|
|
184
|
+
context: import("./project").ProjectContext;
|
|
185
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
187
186
|
scripts: {
|
|
188
187
|
clear: () => void;
|
|
189
188
|
values: () => IterableIterator<{
|
|
189
|
+
snapshot: ts.IScriptSnapshot;
|
|
190
190
|
version: number;
|
|
191
|
-
|
|
192
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
193
|
-
snapshotVersion: number | undefined;
|
|
194
|
-
}>;
|
|
191
|
+
} | undefined>;
|
|
195
192
|
uriDelete: (_uri: string) => boolean;
|
|
196
193
|
uriGet: (_uri: string) => {
|
|
194
|
+
snapshot: ts.IScriptSnapshot;
|
|
197
195
|
version: number;
|
|
198
|
-
fileName: string;
|
|
199
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
200
|
-
snapshotVersion: number | undefined;
|
|
201
196
|
} | undefined;
|
|
202
197
|
uriHas: (_uri: string) => boolean;
|
|
203
198
|
uriSet: (_uri: string, item: {
|
|
199
|
+
snapshot: ts.IScriptSnapshot;
|
|
204
200
|
version: number;
|
|
205
|
-
|
|
206
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
207
|
-
snapshotVersion: number | undefined;
|
|
208
|
-
}) => void;
|
|
201
|
+
} | undefined) => void;
|
|
209
202
|
pathDelete: (path: string) => boolean;
|
|
210
203
|
pathGet: (path: string) => {
|
|
204
|
+
snapshot: ts.IScriptSnapshot;
|
|
211
205
|
version: number;
|
|
212
|
-
fileName: string;
|
|
213
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
214
|
-
snapshotVersion: number | undefined;
|
|
215
206
|
} | undefined;
|
|
216
207
|
pathHas: (path: string) => {
|
|
208
|
+
snapshot: ts.IScriptSnapshot;
|
|
217
209
|
version: number;
|
|
218
|
-
fileName: string;
|
|
219
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
220
|
-
snapshotVersion: number | undefined;
|
|
221
210
|
} | undefined;
|
|
222
211
|
pathSet: (path: string, item: {
|
|
212
|
+
snapshot: ts.IScriptSnapshot;
|
|
223
213
|
version: number;
|
|
224
|
-
|
|
225
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
226
|
-
snapshotVersion: number | undefined;
|
|
227
|
-
}) => void;
|
|
214
|
+
} | undefined) => void;
|
|
228
215
|
};
|
|
229
|
-
|
|
216
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
230
217
|
getLanguageService: () => {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
218
|
+
getTriggerCharacters: () => string[];
|
|
219
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
220
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
221
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
235
222
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
236
223
|
ch: string;
|
|
237
224
|
position: vscode.Position;
|
|
@@ -277,14 +264,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
277
264
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
278
265
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
279
266
|
};
|
|
280
|
-
dispose: () => void
|
|
281
|
-
context: import("@volar/language-service").ServiceContext
|
|
267
|
+
dispose: () => void;
|
|
268
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
282
269
|
};
|
|
283
270
|
getLanguageServiceDontCreate: () => {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
271
|
+
getTriggerCharacters: () => string[];
|
|
272
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
273
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
274
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
288
275
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
289
276
|
ch: string;
|
|
290
277
|
position: vscode.Position;
|
|
@@ -330,64 +317,65 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
330
317
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
331
318
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
332
319
|
};
|
|
333
|
-
dispose: () => void
|
|
334
|
-
context: import("@volar/language-service").ServiceContext
|
|
320
|
+
dispose: () => void;
|
|
321
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
335
322
|
} | undefined;
|
|
336
323
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
337
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
|
+
};
|
|
338
337
|
dispose: () => void;
|
|
339
338
|
}> | undefined;
|
|
340
339
|
uriHas: (_uri: string) => boolean;
|
|
341
340
|
uriSet: (_uri: string, item: Promise<{
|
|
342
|
-
|
|
341
|
+
context: import("./project").ProjectContext;
|
|
342
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
343
343
|
scripts: {
|
|
344
344
|
clear: () => void;
|
|
345
345
|
values: () => IterableIterator<{
|
|
346
|
+
snapshot: ts.IScriptSnapshot;
|
|
346
347
|
version: number;
|
|
347
|
-
|
|
348
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
349
|
-
snapshotVersion: number | undefined;
|
|
350
|
-
}>;
|
|
348
|
+
} | undefined>;
|
|
351
349
|
uriDelete: (_uri: string) => boolean;
|
|
352
350
|
uriGet: (_uri: string) => {
|
|
351
|
+
snapshot: ts.IScriptSnapshot;
|
|
353
352
|
version: number;
|
|
354
|
-
fileName: string;
|
|
355
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
356
|
-
snapshotVersion: number | undefined;
|
|
357
353
|
} | undefined;
|
|
358
354
|
uriHas: (_uri: string) => boolean;
|
|
359
355
|
uriSet: (_uri: string, item: {
|
|
356
|
+
snapshot: ts.IScriptSnapshot;
|
|
360
357
|
version: number;
|
|
361
|
-
|
|
362
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
363
|
-
snapshotVersion: number | undefined;
|
|
364
|
-
}) => void;
|
|
358
|
+
} | undefined) => void;
|
|
365
359
|
pathDelete: (path: string) => boolean;
|
|
366
360
|
pathGet: (path: string) => {
|
|
361
|
+
snapshot: ts.IScriptSnapshot;
|
|
367
362
|
version: number;
|
|
368
|
-
fileName: string;
|
|
369
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
370
|
-
snapshotVersion: number | undefined;
|
|
371
363
|
} | undefined;
|
|
372
364
|
pathHas: (path: string) => {
|
|
365
|
+
snapshot: ts.IScriptSnapshot;
|
|
373
366
|
version: number;
|
|
374
|
-
fileName: string;
|
|
375
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
376
|
-
snapshotVersion: number | undefined;
|
|
377
367
|
} | undefined;
|
|
378
368
|
pathSet: (path: string, item: {
|
|
369
|
+
snapshot: ts.IScriptSnapshot;
|
|
379
370
|
version: number;
|
|
380
|
-
|
|
381
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
382
|
-
snapshotVersion: number | undefined;
|
|
383
|
-
}) => void;
|
|
371
|
+
} | undefined) => void;
|
|
384
372
|
};
|
|
385
|
-
|
|
373
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
386
374
|
getLanguageService: () => {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
375
|
+
getTriggerCharacters: () => string[];
|
|
376
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
377
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
378
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
391
379
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
392
380
|
ch: string;
|
|
393
381
|
position: vscode.Position;
|
|
@@ -433,14 +421,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
433
421
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
434
422
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
435
423
|
};
|
|
436
|
-
dispose: () => void
|
|
437
|
-
context: import("@volar/language-service").ServiceContext
|
|
424
|
+
dispose: () => void;
|
|
425
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
438
426
|
};
|
|
439
427
|
getLanguageServiceDontCreate: () => {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
428
|
+
getTriggerCharacters: () => string[];
|
|
429
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
430
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
431
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
444
432
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
445
433
|
ch: string;
|
|
446
434
|
position: vscode.Position;
|
|
@@ -486,64 +474,65 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
486
474
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
487
475
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
488
476
|
};
|
|
489
|
-
dispose: () => void
|
|
490
|
-
context: import("@volar/language-service").ServiceContext
|
|
477
|
+
dispose: () => void;
|
|
478
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
491
479
|
} | undefined;
|
|
492
480
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
493
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
|
+
};
|
|
494
494
|
dispose: () => void;
|
|
495
495
|
}>) => void;
|
|
496
496
|
pathDelete: (path: string) => boolean;
|
|
497
497
|
pathGet: (path: string) => Promise<{
|
|
498
|
-
|
|
498
|
+
context: import("./project").ProjectContext;
|
|
499
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
499
500
|
scripts: {
|
|
500
501
|
clear: () => void;
|
|
501
502
|
values: () => IterableIterator<{
|
|
503
|
+
snapshot: ts.IScriptSnapshot;
|
|
502
504
|
version: number;
|
|
503
|
-
|
|
504
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
505
|
-
snapshotVersion: number | undefined;
|
|
506
|
-
}>;
|
|
505
|
+
} | undefined>;
|
|
507
506
|
uriDelete: (_uri: string) => boolean;
|
|
508
507
|
uriGet: (_uri: string) => {
|
|
508
|
+
snapshot: ts.IScriptSnapshot;
|
|
509
509
|
version: number;
|
|
510
|
-
fileName: string;
|
|
511
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
512
|
-
snapshotVersion: number | undefined;
|
|
513
510
|
} | undefined;
|
|
514
511
|
uriHas: (_uri: string) => boolean;
|
|
515
512
|
uriSet: (_uri: string, item: {
|
|
513
|
+
snapshot: ts.IScriptSnapshot;
|
|
516
514
|
version: number;
|
|
517
|
-
|
|
518
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
519
|
-
snapshotVersion: number | undefined;
|
|
520
|
-
}) => void;
|
|
515
|
+
} | undefined) => void;
|
|
521
516
|
pathDelete: (path: string) => boolean;
|
|
522
517
|
pathGet: (path: string) => {
|
|
518
|
+
snapshot: ts.IScriptSnapshot;
|
|
523
519
|
version: number;
|
|
524
|
-
fileName: string;
|
|
525
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
526
|
-
snapshotVersion: number | undefined;
|
|
527
520
|
} | undefined;
|
|
528
521
|
pathHas: (path: string) => {
|
|
522
|
+
snapshot: ts.IScriptSnapshot;
|
|
529
523
|
version: number;
|
|
530
|
-
fileName: string;
|
|
531
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
532
|
-
snapshotVersion: number | undefined;
|
|
533
524
|
} | undefined;
|
|
534
525
|
pathSet: (path: string, item: {
|
|
526
|
+
snapshot: ts.IScriptSnapshot;
|
|
535
527
|
version: number;
|
|
536
|
-
|
|
537
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
538
|
-
snapshotVersion: number | undefined;
|
|
539
|
-
}) => void;
|
|
528
|
+
} | undefined) => void;
|
|
540
529
|
};
|
|
541
|
-
|
|
530
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
542
531
|
getLanguageService: () => {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
532
|
+
getTriggerCharacters: () => string[];
|
|
533
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
534
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
535
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
547
536
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
548
537
|
ch: string;
|
|
549
538
|
position: vscode.Position;
|
|
@@ -589,14 +578,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
589
578
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
590
579
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
591
580
|
};
|
|
592
|
-
dispose: () => void
|
|
593
|
-
context: import("@volar/language-service").ServiceContext
|
|
581
|
+
dispose: () => void;
|
|
582
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
594
583
|
};
|
|
595
584
|
getLanguageServiceDontCreate: () => {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
585
|
+
getTriggerCharacters: () => string[];
|
|
586
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
587
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
588
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
600
589
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
601
590
|
ch: string;
|
|
602
591
|
position: vscode.Position;
|
|
@@ -642,63 +631,64 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
642
631
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
643
632
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
644
633
|
};
|
|
645
|
-
dispose: () => void
|
|
646
|
-
context: import("@volar/language-service").ServiceContext
|
|
634
|
+
dispose: () => void;
|
|
635
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
647
636
|
} | undefined;
|
|
648
637
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
649
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
|
+
};
|
|
650
651
|
dispose: () => void;
|
|
651
652
|
}> | undefined;
|
|
652
653
|
pathHas: (path: string) => Promise<{
|
|
653
|
-
|
|
654
|
+
context: import("./project").ProjectContext;
|
|
655
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
654
656
|
scripts: {
|
|
655
657
|
clear: () => void;
|
|
656
658
|
values: () => IterableIterator<{
|
|
659
|
+
snapshot: ts.IScriptSnapshot;
|
|
657
660
|
version: number;
|
|
658
|
-
|
|
659
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
660
|
-
snapshotVersion: number | undefined;
|
|
661
|
-
}>;
|
|
661
|
+
} | undefined>;
|
|
662
662
|
uriDelete: (_uri: string) => boolean;
|
|
663
663
|
uriGet: (_uri: string) => {
|
|
664
|
+
snapshot: ts.IScriptSnapshot;
|
|
664
665
|
version: number;
|
|
665
|
-
fileName: string;
|
|
666
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
667
|
-
snapshotVersion: number | undefined;
|
|
668
666
|
} | undefined;
|
|
669
667
|
uriHas: (_uri: string) => boolean;
|
|
670
668
|
uriSet: (_uri: string, item: {
|
|
669
|
+
snapshot: ts.IScriptSnapshot;
|
|
671
670
|
version: number;
|
|
672
|
-
|
|
673
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
674
|
-
snapshotVersion: number | undefined;
|
|
675
|
-
}) => void;
|
|
671
|
+
} | undefined) => void;
|
|
676
672
|
pathDelete: (path: string) => boolean;
|
|
677
673
|
pathGet: (path: string) => {
|
|
674
|
+
snapshot: ts.IScriptSnapshot;
|
|
678
675
|
version: number;
|
|
679
|
-
fileName: string;
|
|
680
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
681
|
-
snapshotVersion: number | undefined;
|
|
682
676
|
} | undefined;
|
|
683
677
|
pathHas: (path: string) => {
|
|
678
|
+
snapshot: ts.IScriptSnapshot;
|
|
684
679
|
version: number;
|
|
685
|
-
fileName: string;
|
|
686
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
687
|
-
snapshotVersion: number | undefined;
|
|
688
680
|
} | undefined;
|
|
689
681
|
pathSet: (path: string, item: {
|
|
682
|
+
snapshot: ts.IScriptSnapshot;
|
|
690
683
|
version: number;
|
|
691
|
-
|
|
692
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
693
|
-
snapshotVersion: number | undefined;
|
|
694
|
-
}) => void;
|
|
684
|
+
} | undefined) => void;
|
|
695
685
|
};
|
|
696
|
-
|
|
686
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
697
687
|
getLanguageService: () => {
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
688
|
+
getTriggerCharacters: () => string[];
|
|
689
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
690
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
691
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
702
692
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
703
693
|
ch: string;
|
|
704
694
|
position: vscode.Position;
|
|
@@ -744,14 +734,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
744
734
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
745
735
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
746
736
|
};
|
|
747
|
-
dispose: () => void
|
|
748
|
-
context: import("@volar/language-service").ServiceContext
|
|
737
|
+
dispose: () => void;
|
|
738
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
749
739
|
};
|
|
750
740
|
getLanguageServiceDontCreate: () => {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
741
|
+
getTriggerCharacters: () => string[];
|
|
742
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
743
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
744
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
755
745
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
756
746
|
ch: string;
|
|
757
747
|
position: vscode.Position;
|
|
@@ -797,63 +787,64 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
797
787
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
798
788
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
799
789
|
};
|
|
800
|
-
dispose: () => void
|
|
801
|
-
context: import("@volar/language-service").ServiceContext
|
|
790
|
+
dispose: () => void;
|
|
791
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
802
792
|
} | undefined;
|
|
803
793
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
804
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
|
+
};
|
|
805
807
|
dispose: () => void;
|
|
806
808
|
}> | undefined;
|
|
807
809
|
pathSet: (path: string, item: Promise<{
|
|
808
|
-
|
|
810
|
+
context: import("./project").ProjectContext;
|
|
811
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
809
812
|
scripts: {
|
|
810
813
|
clear: () => void;
|
|
811
814
|
values: () => IterableIterator<{
|
|
815
|
+
snapshot: ts.IScriptSnapshot;
|
|
812
816
|
version: number;
|
|
813
|
-
|
|
814
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
815
|
-
snapshotVersion: number | undefined;
|
|
816
|
-
}>;
|
|
817
|
+
} | undefined>;
|
|
817
818
|
uriDelete: (_uri: string) => boolean;
|
|
818
819
|
uriGet: (_uri: string) => {
|
|
820
|
+
snapshot: ts.IScriptSnapshot;
|
|
819
821
|
version: number;
|
|
820
|
-
fileName: string;
|
|
821
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
822
|
-
snapshotVersion: number | undefined;
|
|
823
822
|
} | undefined;
|
|
824
823
|
uriHas: (_uri: string) => boolean;
|
|
825
824
|
uriSet: (_uri: string, item: {
|
|
825
|
+
snapshot: ts.IScriptSnapshot;
|
|
826
826
|
version: number;
|
|
827
|
-
|
|
828
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
829
|
-
snapshotVersion: number | undefined;
|
|
830
|
-
}) => void;
|
|
827
|
+
} | undefined) => void;
|
|
831
828
|
pathDelete: (path: string) => boolean;
|
|
832
829
|
pathGet: (path: string) => {
|
|
830
|
+
snapshot: ts.IScriptSnapshot;
|
|
833
831
|
version: number;
|
|
834
|
-
fileName: string;
|
|
835
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
836
|
-
snapshotVersion: number | undefined;
|
|
837
832
|
} | undefined;
|
|
838
833
|
pathHas: (path: string) => {
|
|
834
|
+
snapshot: ts.IScriptSnapshot;
|
|
839
835
|
version: number;
|
|
840
|
-
fileName: string;
|
|
841
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
842
|
-
snapshotVersion: number | undefined;
|
|
843
836
|
} | undefined;
|
|
844
837
|
pathSet: (path: string, item: {
|
|
838
|
+
snapshot: ts.IScriptSnapshot;
|
|
845
839
|
version: number;
|
|
846
|
-
|
|
847
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
848
|
-
snapshotVersion: number | undefined;
|
|
849
|
-
}) => void;
|
|
840
|
+
} | undefined) => void;
|
|
850
841
|
};
|
|
851
|
-
|
|
842
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
852
843
|
getLanguageService: () => {
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
844
|
+
getTriggerCharacters: () => string[];
|
|
845
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
846
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
847
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
857
848
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
858
849
|
ch: string;
|
|
859
850
|
position: vscode.Position;
|
|
@@ -899,14 +890,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
899
890
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
900
891
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
901
892
|
};
|
|
902
|
-
dispose: () => void
|
|
903
|
-
context: import("@volar/language-service").ServiceContext
|
|
893
|
+
dispose: () => void;
|
|
894
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
904
895
|
};
|
|
905
896
|
getLanguageServiceDontCreate: () => {
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
897
|
+
getTriggerCharacters: () => string[];
|
|
898
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
899
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
900
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
910
901
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
911
902
|
ch: string;
|
|
912
903
|
position: vscode.Position;
|
|
@@ -952,67 +943,67 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
952
943
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
953
944
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
954
945
|
};
|
|
955
|
-
dispose: () => void
|
|
956
|
-
context: import("@volar/language-service").ServiceContext
|
|
946
|
+
dispose: () => void;
|
|
947
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
957
948
|
} | undefined;
|
|
958
949
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
959
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
|
+
};
|
|
960
963
|
dispose: () => void;
|
|
961
964
|
}>) => void;
|
|
962
965
|
};
|
|
963
|
-
documentRegistry: ts.DocumentRegistry | undefined;
|
|
964
966
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
965
967
|
tsconfig: string;
|
|
966
968
|
project: {
|
|
967
|
-
|
|
969
|
+
context: import("./project").ProjectContext;
|
|
970
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
968
971
|
scripts: {
|
|
969
972
|
clear: () => void;
|
|
970
973
|
values: () => IterableIterator<{
|
|
974
|
+
snapshot: ts.IScriptSnapshot;
|
|
971
975
|
version: number;
|
|
972
|
-
|
|
973
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
974
|
-
snapshotVersion: number | undefined;
|
|
975
|
-
}>;
|
|
976
|
+
} | undefined>;
|
|
976
977
|
uriDelete: (_uri: string) => boolean;
|
|
977
978
|
uriGet: (_uri: string) => {
|
|
979
|
+
snapshot: ts.IScriptSnapshot;
|
|
978
980
|
version: number;
|
|
979
|
-
fileName: string;
|
|
980
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
981
|
-
snapshotVersion: number | undefined;
|
|
982
981
|
} | undefined;
|
|
983
982
|
uriHas: (_uri: string) => boolean;
|
|
984
983
|
uriSet: (_uri: string, item: {
|
|
984
|
+
snapshot: ts.IScriptSnapshot;
|
|
985
985
|
version: number;
|
|
986
|
-
|
|
987
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
988
|
-
snapshotVersion: number | undefined;
|
|
989
|
-
}) => void;
|
|
986
|
+
} | undefined) => void;
|
|
990
987
|
pathDelete: (path: string) => boolean;
|
|
991
988
|
pathGet: (path: string) => {
|
|
989
|
+
snapshot: ts.IScriptSnapshot;
|
|
992
990
|
version: number;
|
|
993
|
-
fileName: string;
|
|
994
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
995
|
-
snapshotVersion: number | undefined;
|
|
996
991
|
} | undefined;
|
|
997
992
|
pathHas: (path: string) => {
|
|
993
|
+
snapshot: ts.IScriptSnapshot;
|
|
998
994
|
version: number;
|
|
999
|
-
fileName: string;
|
|
1000
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1001
|
-
snapshotVersion: number | undefined;
|
|
1002
995
|
} | undefined;
|
|
1003
996
|
pathSet: (path: string, item: {
|
|
997
|
+
snapshot: ts.IScriptSnapshot;
|
|
1004
998
|
version: number;
|
|
1005
|
-
|
|
1006
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1007
|
-
snapshotVersion: number | undefined;
|
|
1008
|
-
}) => void;
|
|
999
|
+
} | undefined) => void;
|
|
1009
1000
|
};
|
|
1010
|
-
|
|
1001
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1011
1002
|
getLanguageService: () => {
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1003
|
+
getTriggerCharacters: () => string[];
|
|
1004
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1005
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1006
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1016
1007
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1017
1008
|
ch: string;
|
|
1018
1009
|
position: vscode.Position;
|
|
@@ -1058,14 +1049,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1058
1049
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1059
1050
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1060
1051
|
};
|
|
1061
|
-
dispose: () => void
|
|
1062
|
-
context: import("@volar/language-service").ServiceContext
|
|
1052
|
+
dispose: () => void;
|
|
1053
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1063
1054
|
};
|
|
1064
1055
|
getLanguageServiceDontCreate: () => {
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1056
|
+
getTriggerCharacters: () => string[];
|
|
1057
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1058
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1059
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1069
1060
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1070
1061
|
ch: string;
|
|
1071
1062
|
position: vscode.Position;
|
|
@@ -1111,64 +1102,65 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1111
1102
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1112
1103
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1113
1104
|
};
|
|
1114
|
-
dispose: () => void
|
|
1115
|
-
context: import("@volar/language-service").ServiceContext
|
|
1105
|
+
dispose: () => void;
|
|
1106
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1116
1107
|
} | undefined;
|
|
1117
1108
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1118
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
|
+
};
|
|
1119
1122
|
dispose: () => void;
|
|
1120
|
-
}
|
|
1123
|
+
};
|
|
1121
1124
|
} | undefined>;
|
|
1122
1125
|
getInferredProject: () => Promise<{
|
|
1123
|
-
|
|
1126
|
+
context: import("./project").ProjectContext;
|
|
1127
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
1124
1128
|
scripts: {
|
|
1125
1129
|
clear: () => void;
|
|
1126
1130
|
values: () => IterableIterator<{
|
|
1131
|
+
snapshot: ts.IScriptSnapshot;
|
|
1127
1132
|
version: number;
|
|
1128
|
-
|
|
1129
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1130
|
-
snapshotVersion: number | undefined;
|
|
1131
|
-
}>;
|
|
1133
|
+
} | undefined>;
|
|
1132
1134
|
uriDelete: (_uri: string) => boolean;
|
|
1133
1135
|
uriGet: (_uri: string) => {
|
|
1136
|
+
snapshot: ts.IScriptSnapshot;
|
|
1134
1137
|
version: number;
|
|
1135
|
-
fileName: string;
|
|
1136
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1137
|
-
snapshotVersion: number | undefined;
|
|
1138
1138
|
} | undefined;
|
|
1139
1139
|
uriHas: (_uri: string) => boolean;
|
|
1140
1140
|
uriSet: (_uri: string, item: {
|
|
1141
|
+
snapshot: ts.IScriptSnapshot;
|
|
1141
1142
|
version: number;
|
|
1142
|
-
|
|
1143
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1144
|
-
snapshotVersion: number | undefined;
|
|
1145
|
-
}) => void;
|
|
1143
|
+
} | undefined) => void;
|
|
1146
1144
|
pathDelete: (path: string) => boolean;
|
|
1147
1145
|
pathGet: (path: string) => {
|
|
1146
|
+
snapshot: ts.IScriptSnapshot;
|
|
1148
1147
|
version: number;
|
|
1149
|
-
fileName: string;
|
|
1150
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1151
|
-
snapshotVersion: number | undefined;
|
|
1152
1148
|
} | undefined;
|
|
1153
1149
|
pathHas: (path: string) => {
|
|
1150
|
+
snapshot: ts.IScriptSnapshot;
|
|
1154
1151
|
version: number;
|
|
1155
|
-
fileName: string;
|
|
1156
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1157
|
-
snapshotVersion: number | undefined;
|
|
1158
1152
|
} | undefined;
|
|
1159
1153
|
pathSet: (path: string, item: {
|
|
1154
|
+
snapshot: ts.IScriptSnapshot;
|
|
1160
1155
|
version: number;
|
|
1161
|
-
|
|
1162
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1163
|
-
snapshotVersion: number | undefined;
|
|
1164
|
-
}) => void;
|
|
1156
|
+
} | undefined) => void;
|
|
1165
1157
|
};
|
|
1166
|
-
|
|
1158
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1167
1159
|
getLanguageService: () => {
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1160
|
+
getTriggerCharacters: () => string[];
|
|
1161
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1162
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1163
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1172
1164
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1173
1165
|
ch: string;
|
|
1174
1166
|
position: vscode.Position;
|
|
@@ -1214,14 +1206,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1214
1206
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1215
1207
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1216
1208
|
};
|
|
1217
|
-
dispose: () => void
|
|
1218
|
-
context: import("@volar/language-service").ServiceContext
|
|
1209
|
+
dispose: () => void;
|
|
1210
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1219
1211
|
};
|
|
1220
1212
|
getLanguageServiceDontCreate: () => {
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1213
|
+
getTriggerCharacters: () => string[];
|
|
1214
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1215
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1216
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1225
1217
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1226
1218
|
ch: string;
|
|
1227
1219
|
position: vscode.Position;
|
|
@@ -1267,63 +1259,64 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1267
1259
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1268
1260
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1269
1261
|
};
|
|
1270
|
-
dispose: () => void
|
|
1271
|
-
context: import("@volar/language-service").ServiceContext
|
|
1262
|
+
dispose: () => void;
|
|
1263
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1272
1264
|
} | undefined;
|
|
1273
1265
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1274
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
|
+
};
|
|
1275
1279
|
dispose: () => void;
|
|
1276
1280
|
}>;
|
|
1277
1281
|
getInferredProjectDontCreate: () => Promise<{
|
|
1278
|
-
|
|
1282
|
+
context: import("./project").ProjectContext;
|
|
1283
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
1279
1284
|
scripts: {
|
|
1280
1285
|
clear: () => void;
|
|
1281
1286
|
values: () => IterableIterator<{
|
|
1287
|
+
snapshot: ts.IScriptSnapshot;
|
|
1282
1288
|
version: number;
|
|
1283
|
-
|
|
1284
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1285
|
-
snapshotVersion: number | undefined;
|
|
1286
|
-
}>;
|
|
1289
|
+
} | undefined>;
|
|
1287
1290
|
uriDelete: (_uri: string) => boolean;
|
|
1288
1291
|
uriGet: (_uri: string) => {
|
|
1292
|
+
snapshot: ts.IScriptSnapshot;
|
|
1289
1293
|
version: number;
|
|
1290
|
-
fileName: string;
|
|
1291
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1292
|
-
snapshotVersion: number | undefined;
|
|
1293
1294
|
} | undefined;
|
|
1294
1295
|
uriHas: (_uri: string) => boolean;
|
|
1295
1296
|
uriSet: (_uri: string, item: {
|
|
1297
|
+
snapshot: ts.IScriptSnapshot;
|
|
1296
1298
|
version: number;
|
|
1297
|
-
|
|
1298
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1299
|
-
snapshotVersion: number | undefined;
|
|
1300
|
-
}) => void;
|
|
1299
|
+
} | undefined) => void;
|
|
1301
1300
|
pathDelete: (path: string) => boolean;
|
|
1302
1301
|
pathGet: (path: string) => {
|
|
1302
|
+
snapshot: ts.IScriptSnapshot;
|
|
1303
1303
|
version: number;
|
|
1304
|
-
fileName: string;
|
|
1305
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1306
|
-
snapshotVersion: number | undefined;
|
|
1307
1304
|
} | undefined;
|
|
1308
1305
|
pathHas: (path: string) => {
|
|
1306
|
+
snapshot: ts.IScriptSnapshot;
|
|
1309
1307
|
version: number;
|
|
1310
|
-
fileName: string;
|
|
1311
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1312
|
-
snapshotVersion: number | undefined;
|
|
1313
1308
|
} | undefined;
|
|
1314
1309
|
pathSet: (path: string, item: {
|
|
1310
|
+
snapshot: ts.IScriptSnapshot;
|
|
1315
1311
|
version: number;
|
|
1316
|
-
|
|
1317
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1318
|
-
snapshotVersion: number | undefined;
|
|
1319
|
-
}) => void;
|
|
1312
|
+
} | undefined) => void;
|
|
1320
1313
|
};
|
|
1321
|
-
|
|
1314
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1322
1315
|
getLanguageService: () => {
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1316
|
+
getTriggerCharacters: () => string[];
|
|
1317
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1318
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1319
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1327
1320
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1328
1321
|
ch: string;
|
|
1329
1322
|
position: vscode.Position;
|
|
@@ -1369,14 +1362,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1369
1362
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1370
1363
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1371
1364
|
};
|
|
1372
|
-
dispose: () => void
|
|
1373
|
-
context: import("@volar/language-service").ServiceContext
|
|
1365
|
+
dispose: () => void;
|
|
1366
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1374
1367
|
};
|
|
1375
1368
|
getLanguageServiceDontCreate: () => {
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1369
|
+
getTriggerCharacters: () => string[];
|
|
1370
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1371
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1372
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1380
1373
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1381
1374
|
ch: string;
|
|
1382
1375
|
position: vscode.Position;
|
|
@@ -1422,11 +1415,23 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1422
1415
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1423
1416
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1424
1417
|
};
|
|
1425
|
-
dispose: () => void
|
|
1426
|
-
context: import("@volar/language-service").ServiceContext
|
|
1418
|
+
dispose: () => void;
|
|
1419
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1427
1420
|
} | undefined;
|
|
1428
1421
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1429
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
|
+
};
|
|
1430
1435
|
dispose: () => void;
|
|
1431
1436
|
}> | undefined;
|
|
1432
1437
|
reload: () => void;
|
|
@@ -1435,55 +1440,44 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1435
1440
|
getProject: (uri: string) => Promise<{
|
|
1436
1441
|
tsconfig: string;
|
|
1437
1442
|
project: {
|
|
1438
|
-
|
|
1443
|
+
context: import("./project").ProjectContext;
|
|
1444
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
1439
1445
|
scripts: {
|
|
1440
1446
|
clear: () => void;
|
|
1441
1447
|
values: () => IterableIterator<{
|
|
1448
|
+
snapshot: ts.IScriptSnapshot;
|
|
1442
1449
|
version: number;
|
|
1443
|
-
|
|
1444
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1445
|
-
snapshotVersion: number | undefined;
|
|
1446
|
-
}>;
|
|
1450
|
+
} | undefined>;
|
|
1447
1451
|
uriDelete: (_uri: string) => boolean;
|
|
1448
1452
|
uriGet: (_uri: string) => {
|
|
1453
|
+
snapshot: ts.IScriptSnapshot;
|
|
1449
1454
|
version: number;
|
|
1450
|
-
fileName: string;
|
|
1451
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1452
|
-
snapshotVersion: number | undefined;
|
|
1453
1455
|
} | undefined;
|
|
1454
1456
|
uriHas: (_uri: string) => boolean;
|
|
1455
1457
|
uriSet: (_uri: string, item: {
|
|
1458
|
+
snapshot: ts.IScriptSnapshot;
|
|
1456
1459
|
version: number;
|
|
1457
|
-
|
|
1458
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1459
|
-
snapshotVersion: number | undefined;
|
|
1460
|
-
}) => void;
|
|
1460
|
+
} | undefined) => void;
|
|
1461
1461
|
pathDelete: (path: string) => boolean;
|
|
1462
1462
|
pathGet: (path: string) => {
|
|
1463
|
+
snapshot: ts.IScriptSnapshot;
|
|
1463
1464
|
version: number;
|
|
1464
|
-
fileName: string;
|
|
1465
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1466
|
-
snapshotVersion: number | undefined;
|
|
1467
1465
|
} | undefined;
|
|
1468
1466
|
pathHas: (path: string) => {
|
|
1467
|
+
snapshot: ts.IScriptSnapshot;
|
|
1469
1468
|
version: number;
|
|
1470
|
-
fileName: string;
|
|
1471
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1472
|
-
snapshotVersion: number | undefined;
|
|
1473
1469
|
} | undefined;
|
|
1474
1470
|
pathSet: (path: string, item: {
|
|
1471
|
+
snapshot: ts.IScriptSnapshot;
|
|
1475
1472
|
version: number;
|
|
1476
|
-
|
|
1477
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1478
|
-
snapshotVersion: number | undefined;
|
|
1479
|
-
}) => void;
|
|
1473
|
+
} | undefined) => void;
|
|
1480
1474
|
};
|
|
1481
|
-
|
|
1475
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1482
1476
|
getLanguageService: () => {
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1477
|
+
getTriggerCharacters: () => string[];
|
|
1478
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1479
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1480
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1487
1481
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1488
1482
|
ch: string;
|
|
1489
1483
|
position: vscode.Position;
|
|
@@ -1529,14 +1523,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1529
1523
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1530
1524
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1531
1525
|
};
|
|
1532
|
-
dispose: () => void
|
|
1533
|
-
context: import("@volar/language-service").ServiceContext
|
|
1526
|
+
dispose: () => void;
|
|
1527
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1534
1528
|
};
|
|
1535
1529
|
getLanguageServiceDontCreate: () => {
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1530
|
+
getTriggerCharacters: () => string[];
|
|
1531
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1532
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1533
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1540
1534
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1541
1535
|
ch: string;
|
|
1542
1536
|
position: vscode.Position;
|
|
@@ -1582,65 +1576,66 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1582
1576
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1583
1577
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1584
1578
|
};
|
|
1585
|
-
dispose: () => void
|
|
1586
|
-
context: import("@volar/language-service").ServiceContext
|
|
1579
|
+
dispose: () => void;
|
|
1580
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1587
1581
|
} | undefined;
|
|
1588
1582
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1589
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
|
+
};
|
|
1590
1596
|
dispose: () => void;
|
|
1591
|
-
}
|
|
1597
|
+
};
|
|
1592
1598
|
} | {
|
|
1593
1599
|
tsconfig: undefined;
|
|
1594
1600
|
project: {
|
|
1595
|
-
|
|
1601
|
+
context: import("./project").ProjectContext;
|
|
1602
|
+
tsConfig: import("typesafe-path/posix").PosixPath | ts.CompilerOptions;
|
|
1596
1603
|
scripts: {
|
|
1597
1604
|
clear: () => void;
|
|
1598
1605
|
values: () => IterableIterator<{
|
|
1606
|
+
snapshot: ts.IScriptSnapshot;
|
|
1599
1607
|
version: number;
|
|
1600
|
-
|
|
1601
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1602
|
-
snapshotVersion: number | undefined;
|
|
1603
|
-
}>;
|
|
1608
|
+
} | undefined>;
|
|
1604
1609
|
uriDelete: (_uri: string) => boolean;
|
|
1605
1610
|
uriGet: (_uri: string) => {
|
|
1611
|
+
snapshot: ts.IScriptSnapshot;
|
|
1606
1612
|
version: number;
|
|
1607
|
-
fileName: string;
|
|
1608
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1609
|
-
snapshotVersion: number | undefined;
|
|
1610
1613
|
} | undefined;
|
|
1611
1614
|
uriHas: (_uri: string) => boolean;
|
|
1612
1615
|
uriSet: (_uri: string, item: {
|
|
1616
|
+
snapshot: ts.IScriptSnapshot;
|
|
1613
1617
|
version: number;
|
|
1614
|
-
|
|
1615
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1616
|
-
snapshotVersion: number | undefined;
|
|
1617
|
-
}) => void;
|
|
1618
|
+
} | undefined) => void;
|
|
1618
1619
|
pathDelete: (path: string) => boolean;
|
|
1619
1620
|
pathGet: (path: string) => {
|
|
1621
|
+
snapshot: ts.IScriptSnapshot;
|
|
1620
1622
|
version: number;
|
|
1621
|
-
fileName: string;
|
|
1622
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1623
|
-
snapshotVersion: number | undefined;
|
|
1624
1623
|
} | undefined;
|
|
1625
1624
|
pathHas: (path: string) => {
|
|
1625
|
+
snapshot: ts.IScriptSnapshot;
|
|
1626
1626
|
version: number;
|
|
1627
|
-
fileName: string;
|
|
1628
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1629
|
-
snapshotVersion: number | undefined;
|
|
1630
1627
|
} | undefined;
|
|
1631
1628
|
pathSet: (path: string, item: {
|
|
1629
|
+
snapshot: ts.IScriptSnapshot;
|
|
1632
1630
|
version: number;
|
|
1633
|
-
|
|
1634
|
-
snapshot: ts.IScriptSnapshot | undefined;
|
|
1635
|
-
snapshotVersion: number | undefined;
|
|
1636
|
-
}) => void;
|
|
1631
|
+
} | undefined) => void;
|
|
1637
1632
|
};
|
|
1638
|
-
|
|
1633
|
+
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1639
1634
|
getLanguageService: () => {
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1635
|
+
getTriggerCharacters: () => string[];
|
|
1636
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1637
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1638
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1644
1639
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1645
1640
|
ch: string;
|
|
1646
1641
|
position: vscode.Position;
|
|
@@ -1686,14 +1681,14 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1686
1681
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1687
1682
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1688
1683
|
};
|
|
1689
|
-
dispose: () => void
|
|
1690
|
-
context: import("@volar/language-service").ServiceContext
|
|
1684
|
+
dispose: () => void;
|
|
1685
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1691
1686
|
};
|
|
1692
1687
|
getLanguageServiceDontCreate: () => {
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1688
|
+
getTriggerCharacters: () => string[];
|
|
1689
|
+
getAutoFormatTriggerCharacters: () => string[];
|
|
1690
|
+
getSignatureHelpTriggerCharacters: () => string[];
|
|
1691
|
+
getSignatureHelpRetriggerCharacters: () => string[];
|
|
1697
1692
|
format: (uri: string, options: vscode.FormattingOptions, range: vscode.Range | undefined, onTypeParams: {
|
|
1698
1693
|
ch: string;
|
|
1699
1694
|
position: vscode.Position;
|
|
@@ -1739,11 +1734,23 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1739
1734
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1740
1735
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1741
1736
|
};
|
|
1742
|
-
dispose: () => void
|
|
1743
|
-
context: import("@volar/language-service").ServiceContext
|
|
1737
|
+
dispose: () => void;
|
|
1738
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1744
1739
|
} | undefined;
|
|
1745
1740
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1746
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
|
+
};
|
|
1747
1754
|
dispose: () => void;
|
|
1748
1755
|
} | undefined;
|
|
1749
1756
|
} | undefined>;
|