@volar/language-server 1.0.19 → 1.0.20
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.d.ts +3 -1
- package/out/browser/index.js +8 -4
- package/out/common/features/customFeatures.js +16 -16
- package/out/common/features/languageFeatures.js +45 -0
- package/out/common/project.d.ts +25 -5
- package/out/common/project.js +61 -39
- package/out/common/server.d.ts +1 -1
- package/out/common/server.js +13 -36
- package/out/common/utils/inferredCompilerOptions.d.ts +1 -1
- package/out/common/utils/inferredCompilerOptions.js +5 -5
- package/out/common/utils/registerFeatures.d.ts +1 -2
- package/out/common/utils/registerFeatures.js +68 -51
- package/out/common/workspace.d.ts +218 -38
- package/out/common/workspace.js +18 -14
- package/out/common/workspaces.d.ts +269 -49
- package/out/common/workspaces.js +12 -9
- package/out/node/index.d.ts +3 -1
- package/out/node/index.js +8 -5
- package/out/types.d.ts +7 -13
- package/package.json +5 -5
- package/out/common/features/documentFeatures.d.ts +0 -4
- package/out/common/features/documentFeatures.js +0 -73
- package/out/common/syntaxServicesHost.d.ts +0 -29
- package/out/common/syntaxServicesHost.js +0 -53
|
@@ -12,9 +12,9 @@ export interface WorkspacesContext {
|
|
|
12
12
|
initParams: vscode.InitializeParams;
|
|
13
13
|
initOptions: LanguageServerInitializationOptions;
|
|
14
14
|
plugins: ReturnType<LanguageServerPlugin>[];
|
|
15
|
-
ts: typeof import('typescript/lib/tsserverlibrary');
|
|
15
|
+
ts: typeof import('typescript/lib/tsserverlibrary') | undefined;
|
|
16
16
|
tsLocalized: ts.MapLike<string> | undefined;
|
|
17
|
-
fileSystemHost: FileSystemHost;
|
|
17
|
+
fileSystemHost: FileSystemHost | undefined;
|
|
18
18
|
configurationHost: ConfigurationHost | undefined;
|
|
19
19
|
documents: ReturnType<typeof createDocuments>;
|
|
20
20
|
cancelTokenHost: CancellationTokenHost;
|
|
@@ -71,6 +71,16 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
71
71
|
};
|
|
72
72
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
73
73
|
getLanguageService: () => {
|
|
74
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
75
|
+
ch: string;
|
|
76
|
+
position: vscode.Position;
|
|
77
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
78
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
79
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
80
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
81
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
82
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
83
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
74
84
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
75
85
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
76
86
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -107,10 +117,20 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
107
117
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
108
118
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
109
119
|
};
|
|
110
|
-
dispose: () => void;
|
|
111
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
120
|
+
dispose: () => void | undefined;
|
|
121
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
112
122
|
};
|
|
113
123
|
getLanguageServiceDontCreate: () => {
|
|
124
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
125
|
+
ch: string;
|
|
126
|
+
position: vscode.Position;
|
|
127
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
128
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
129
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
130
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
131
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
132
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
133
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
114
134
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
115
135
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
116
136
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -147,8 +167,8 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
147
167
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
148
168
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
149
169
|
};
|
|
150
|
-
dispose: () => void;
|
|
151
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
170
|
+
dispose: () => void | undefined;
|
|
171
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
152
172
|
} | undefined;
|
|
153
173
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
154
174
|
tryAddFile: (fileName: string) => void;
|
|
@@ -201,6 +221,16 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
201
221
|
};
|
|
202
222
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
203
223
|
getLanguageService: () => {
|
|
224
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
225
|
+
ch: string;
|
|
226
|
+
position: vscode.Position;
|
|
227
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
228
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
229
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
230
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
231
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
232
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
233
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
204
234
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
205
235
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
206
236
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -237,10 +267,20 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
237
267
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
238
268
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
239
269
|
};
|
|
240
|
-
dispose: () => void;
|
|
241
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
270
|
+
dispose: () => void | undefined;
|
|
271
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
242
272
|
};
|
|
243
273
|
getLanguageServiceDontCreate: () => {
|
|
274
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
275
|
+
ch: string;
|
|
276
|
+
position: vscode.Position;
|
|
277
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
278
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
279
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
280
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
281
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
282
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
283
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
244
284
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
245
285
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
246
286
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -277,8 +317,8 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
277
317
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
278
318
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
279
319
|
};
|
|
280
|
-
dispose: () => void;
|
|
281
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
320
|
+
dispose: () => void | undefined;
|
|
321
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
282
322
|
} | undefined;
|
|
283
323
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
284
324
|
tryAddFile: (fileName: string) => void;
|
|
@@ -331,6 +371,16 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
331
371
|
};
|
|
332
372
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
333
373
|
getLanguageService: () => {
|
|
374
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
375
|
+
ch: string;
|
|
376
|
+
position: vscode.Position;
|
|
377
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
378
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
379
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
380
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
381
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
382
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
383
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
334
384
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
335
385
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
336
386
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -367,10 +417,20 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
367
417
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
368
418
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
369
419
|
};
|
|
370
|
-
dispose: () => void;
|
|
371
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
420
|
+
dispose: () => void | undefined;
|
|
421
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
372
422
|
};
|
|
373
423
|
getLanguageServiceDontCreate: () => {
|
|
424
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
425
|
+
ch: string;
|
|
426
|
+
position: vscode.Position;
|
|
427
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
428
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
429
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
430
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
431
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
432
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
433
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
374
434
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
375
435
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
376
436
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -407,8 +467,8 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
407
467
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
408
468
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
409
469
|
};
|
|
410
|
-
dispose: () => void;
|
|
411
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
470
|
+
dispose: () => void | undefined;
|
|
471
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
412
472
|
} | undefined;
|
|
413
473
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
414
474
|
tryAddFile: (fileName: string) => void;
|
|
@@ -461,6 +521,16 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
461
521
|
};
|
|
462
522
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
463
523
|
getLanguageService: () => {
|
|
524
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
525
|
+
ch: string;
|
|
526
|
+
position: vscode.Position;
|
|
527
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
528
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
529
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
530
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
531
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
532
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
533
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
464
534
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
465
535
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
466
536
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -497,10 +567,20 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
497
567
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
498
568
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
499
569
|
};
|
|
500
|
-
dispose: () => void;
|
|
501
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
570
|
+
dispose: () => void | undefined;
|
|
571
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
502
572
|
};
|
|
503
573
|
getLanguageServiceDontCreate: () => {
|
|
574
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
575
|
+
ch: string;
|
|
576
|
+
position: vscode.Position;
|
|
577
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
578
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
579
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
580
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
581
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
582
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
583
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
504
584
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
505
585
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
506
586
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -537,8 +617,8 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
537
617
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
538
618
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
539
619
|
};
|
|
540
|
-
dispose: () => void;
|
|
541
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
620
|
+
dispose: () => void | undefined;
|
|
621
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
542
622
|
} | undefined;
|
|
543
623
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
544
624
|
tryAddFile: (fileName: string) => void;
|
|
@@ -590,6 +670,16 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
590
670
|
};
|
|
591
671
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
592
672
|
getLanguageService: () => {
|
|
673
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
674
|
+
ch: string;
|
|
675
|
+
position: vscode.Position;
|
|
676
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
677
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
678
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
679
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
680
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
681
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
682
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
593
683
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
594
684
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
595
685
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -626,10 +716,20 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
626
716
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
627
717
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
628
718
|
};
|
|
629
|
-
dispose: () => void;
|
|
630
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
719
|
+
dispose: () => void | undefined;
|
|
720
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
631
721
|
};
|
|
632
722
|
getLanguageServiceDontCreate: () => {
|
|
723
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
724
|
+
ch: string;
|
|
725
|
+
position: vscode.Position;
|
|
726
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
727
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
728
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
729
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
730
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
731
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
732
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
633
733
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
634
734
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
635
735
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -666,8 +766,8 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
666
766
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
667
767
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
668
768
|
};
|
|
669
|
-
dispose: () => void;
|
|
670
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
769
|
+
dispose: () => void | undefined;
|
|
770
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
671
771
|
} | undefined;
|
|
672
772
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
673
773
|
tryAddFile: (fileName: string) => void;
|
|
@@ -719,6 +819,16 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
719
819
|
};
|
|
720
820
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
721
821
|
getLanguageService: () => {
|
|
822
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
823
|
+
ch: string;
|
|
824
|
+
position: vscode.Position;
|
|
825
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
826
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
827
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
828
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
829
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
830
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
831
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
722
832
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
723
833
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
724
834
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -755,10 +865,20 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
755
865
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
756
866
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
757
867
|
};
|
|
758
|
-
dispose: () => void;
|
|
759
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
868
|
+
dispose: () => void | undefined;
|
|
869
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
760
870
|
};
|
|
761
871
|
getLanguageServiceDontCreate: () => {
|
|
872
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
873
|
+
ch: string;
|
|
874
|
+
position: vscode.Position;
|
|
875
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
876
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
877
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
878
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
879
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
880
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
881
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
762
882
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
763
883
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
764
884
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -795,15 +915,15 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
795
915
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
796
916
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
797
917
|
};
|
|
798
|
-
dispose: () => void;
|
|
799
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
918
|
+
dispose: () => void | undefined;
|
|
919
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
800
920
|
} | undefined;
|
|
801
921
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
802
922
|
tryAddFile: (fileName: string) => void;
|
|
803
923
|
dispose: () => void;
|
|
804
924
|
}>) => void;
|
|
805
925
|
};
|
|
806
|
-
documentRegistry: ts.DocumentRegistry;
|
|
926
|
+
documentRegistry: ts.DocumentRegistry | undefined;
|
|
807
927
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
808
928
|
tsconfig: string;
|
|
809
929
|
project: {
|
|
@@ -852,6 +972,16 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
852
972
|
};
|
|
853
973
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
854
974
|
getLanguageService: () => {
|
|
975
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
976
|
+
ch: string;
|
|
977
|
+
position: vscode.Position;
|
|
978
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
979
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
980
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
981
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
982
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
983
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
984
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
855
985
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
856
986
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
857
987
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -888,10 +1018,20 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
888
1018
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
889
1019
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
890
1020
|
};
|
|
891
|
-
dispose: () => void;
|
|
892
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
1021
|
+
dispose: () => void | undefined;
|
|
1022
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
893
1023
|
};
|
|
894
1024
|
getLanguageServiceDontCreate: () => {
|
|
1025
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1026
|
+
ch: string;
|
|
1027
|
+
position: vscode.Position;
|
|
1028
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
1029
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1030
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1031
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1032
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
1033
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1034
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
895
1035
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
896
1036
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
897
1037
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -928,13 +1068,13 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
928
1068
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
929
1069
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
930
1070
|
};
|
|
931
|
-
dispose: () => void;
|
|
932
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
1071
|
+
dispose: () => void | undefined;
|
|
1072
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
933
1073
|
} | undefined;
|
|
934
1074
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
935
1075
|
tryAddFile: (fileName: string) => void;
|
|
936
1076
|
dispose: () => void;
|
|
937
|
-
};
|
|
1077
|
+
} | undefined;
|
|
938
1078
|
} | undefined>;
|
|
939
1079
|
getInferredProject: () => Promise<{
|
|
940
1080
|
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
@@ -982,6 +1122,16 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
982
1122
|
};
|
|
983
1123
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
984
1124
|
getLanguageService: () => {
|
|
1125
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1126
|
+
ch: string;
|
|
1127
|
+
position: vscode.Position;
|
|
1128
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
1129
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1130
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1131
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1132
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
1133
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1134
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
985
1135
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
986
1136
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
987
1137
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -1018,10 +1168,20 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1018
1168
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1019
1169
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1020
1170
|
};
|
|
1021
|
-
dispose: () => void;
|
|
1022
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
1171
|
+
dispose: () => void | undefined;
|
|
1172
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
1023
1173
|
};
|
|
1024
1174
|
getLanguageServiceDontCreate: () => {
|
|
1175
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1176
|
+
ch: string;
|
|
1177
|
+
position: vscode.Position;
|
|
1178
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
1179
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1180
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1181
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1182
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
1183
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1184
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1025
1185
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1026
1186
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
1027
1187
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -1058,8 +1218,8 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1058
1218
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1059
1219
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1060
1220
|
};
|
|
1061
|
-
dispose: () => void;
|
|
1062
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
1221
|
+
dispose: () => void | undefined;
|
|
1222
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
1063
1223
|
} | undefined;
|
|
1064
1224
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1065
1225
|
tryAddFile: (fileName: string) => void;
|
|
@@ -1111,6 +1271,16 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1111
1271
|
};
|
|
1112
1272
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
1113
1273
|
getLanguageService: () => {
|
|
1274
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1275
|
+
ch: string;
|
|
1276
|
+
position: vscode.Position;
|
|
1277
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
1278
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1279
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1280
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1281
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
1282
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1283
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1114
1284
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1115
1285
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
1116
1286
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -1147,10 +1317,20 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1147
1317
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1148
1318
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1149
1319
|
};
|
|
1150
|
-
dispose: () => void;
|
|
1151
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
1320
|
+
dispose: () => void | undefined;
|
|
1321
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
1152
1322
|
};
|
|
1153
1323
|
getLanguageServiceDontCreate: () => {
|
|
1324
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1325
|
+
ch: string;
|
|
1326
|
+
position: vscode.Position;
|
|
1327
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
1328
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1329
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1330
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1331
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
1332
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1333
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1154
1334
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1155
1335
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
1156
1336
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -1187,8 +1367,8 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1187
1367
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1188
1368
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1189
1369
|
};
|
|
1190
|
-
dispose: () => void;
|
|
1191
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
1370
|
+
dispose: () => void | undefined;
|
|
1371
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
1192
1372
|
} | undefined;
|
|
1193
1373
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1194
1374
|
tryAddFile: (fileName: string) => void;
|
|
@@ -1245,6 +1425,16 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1245
1425
|
};
|
|
1246
1426
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
1247
1427
|
getLanguageService: () => {
|
|
1428
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1429
|
+
ch: string;
|
|
1430
|
+
position: vscode.Position;
|
|
1431
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
1432
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1433
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1434
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1435
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
1436
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1437
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1248
1438
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1249
1439
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
1250
1440
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -1281,10 +1471,20 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1281
1471
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1282
1472
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1283
1473
|
};
|
|
1284
|
-
dispose: () => void;
|
|
1285
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
1474
|
+
dispose: () => void | undefined;
|
|
1475
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
1286
1476
|
};
|
|
1287
1477
|
getLanguageServiceDontCreate: () => {
|
|
1478
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1479
|
+
ch: string;
|
|
1480
|
+
position: vscode.Position;
|
|
1481
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
1482
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1483
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1484
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1485
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
1486
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1487
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1288
1488
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1289
1489
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
1290
1490
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -1321,13 +1521,13 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1321
1521
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1322
1522
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1323
1523
|
};
|
|
1324
|
-
dispose: () => void;
|
|
1325
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
1524
|
+
dispose: () => void | undefined;
|
|
1525
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
1326
1526
|
} | undefined;
|
|
1327
1527
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1328
1528
|
tryAddFile: (fileName: string) => void;
|
|
1329
1529
|
dispose: () => void;
|
|
1330
|
-
};
|
|
1530
|
+
} | undefined;
|
|
1331
1531
|
} | {
|
|
1332
1532
|
tsconfig: undefined;
|
|
1333
1533
|
project: {
|
|
@@ -1376,6 +1576,16 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1376
1576
|
};
|
|
1377
1577
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
1378
1578
|
getLanguageService: () => {
|
|
1579
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1580
|
+
ch: string;
|
|
1581
|
+
position: vscode.Position;
|
|
1582
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
1583
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1584
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1585
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1586
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
1587
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1588
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1379
1589
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1380
1590
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
1381
1591
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -1412,10 +1622,20 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1412
1622
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1413
1623
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1414
1624
|
};
|
|
1415
|
-
dispose: () => void;
|
|
1416
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
1625
|
+
dispose: () => void | undefined;
|
|
1626
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
1417
1627
|
};
|
|
1418
1628
|
getLanguageServiceDontCreate: () => {
|
|
1629
|
+
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1630
|
+
ch: string;
|
|
1631
|
+
position: vscode.Position;
|
|
1632
|
+
} | undefined) => Promise<vscode.TextEdit[] | undefined>;
|
|
1633
|
+
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1634
|
+
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1635
|
+
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1636
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.SymbolInformation[] | undefined>;
|
|
1637
|
+
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1638
|
+
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1419
1639
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1420
1640
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
1421
1641
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
@@ -1452,8 +1672,8 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1452
1672
|
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1453
1673
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1454
1674
|
};
|
|
1455
|
-
dispose: () => void;
|
|
1456
|
-
context: import("@volar/language-service").LanguageServiceRuntimeContext
|
|
1675
|
+
dispose: () => void | undefined;
|
|
1676
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext<import("@volar/language-service").LanguageServiceHost>;
|
|
1457
1677
|
} | undefined;
|
|
1458
1678
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1459
1679
|
tryAddFile: (fileName: string) => void;
|