vscode-languageserver-protocol 3.15.0-next.8 → 3.15.0-next.9

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/lib/protocol.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { RequestType, RequestType0, NotificationType, NotificationType0, ProgressToken, ProgressType } from 'vscode-jsonrpc';
2
- import { TextDocumentContentChangeEvent, Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, TextDocumentSaveReason, CompletionItem, CompletionList, Hover, SignatureHelp, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol } from 'vscode-languageserver-types';
3
- import { ImplementationRequest, ImplementationClientCapabilities, ImplementationServerCapabilities } from './protocol.implementation';
4
- import { TypeDefinitionRequest, TypeDefinitionClientCapabilities, TypeDefinitionServerCapabilities } from './protocol.typeDefinition';
2
+ import { TextDocumentContentChangeEvent, Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, TextDocumentSaveReason, CompletionItem, CompletionList, Hover, SignatureHelp, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag } from 'vscode-languageserver-types';
3
+ import { ImplementationRequest, ImplementationClientCapabilities, ImplementationOptions, ImplementationRegistrationOptions } from './protocol.implementation';
4
+ import { TypeDefinitionRequest, TypeDefinitionClientCapabilities, TypeDefinitionOptions, TypeDefinitionRegistrationOptions } from './protocol.typeDefinition';
5
5
  import { WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, WorkspaceFoldersInitializeParams, WorkspaceFoldersClientCapabilities, WorkspaceFoldersServerCapabilities } from './protocol.workspaceFolders';
6
6
  import { ConfigurationRequest, ConfigurationParams, ConfigurationItem, ConfigurationClientCapabilities } from './protocol.configuration';
7
- import { DocumentColorRequest, ColorPresentationRequest, ColorOptions, DocumentColorParams, ColorPresentationParams, ColorServerCapabilities, ColorClientCapabilities } from './protocol.colorProvider';
8
- import { FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeServerCapabilities } from './protocol.foldingRange';
9
- import { DeclarationClientCapabilities, DeclarationRequest, DeclarationServerCapabilities } from './protocol.declaration';
10
- import { SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeRequest, SelectionRangeServerCapabilities, SelectionRangeParams } from './protocol.selectionRange';
7
+ import { DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, DocumentColorClientCapabilities, DocumentColorRegistrationOptions } from './protocol.colorProvider';
8
+ import { FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeRegistrationOptions } from './protocol.foldingRange';
9
+ import { DeclarationClientCapabilities, DeclarationRequest, DeclarationOptions, DeclarationRegistrationOptions } from './protocol.declaration';
10
+ import { SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeRequest, SelectionRangeParams, SelectionRangeRegistrationOptions } from './protocol.selectionRange';
11
11
  /**
12
12
  * A document filter denotes a document by different properties like
13
13
  * the [language](#TextDocument.languageId), the [scheme](#Uri.scheme) of
@@ -200,76 +200,23 @@ export interface WorkspaceClientCapabilities {
200
200
  /**
201
201
  * Capabilities specific to `WorkspaceEdit`s
202
202
  */
203
- workspaceEdit?: {
204
- /**
205
- * The client supports versioned document changes in `WorkspaceEdit`s
206
- */
207
- documentChanges?: boolean;
208
- /**
209
- * The resource operations the client supports. Clients should at least
210
- * support 'create', 'rename' and 'delete' files and folders.
211
- */
212
- resourceOperations?: ResourceOperationKind[];
213
- /**
214
- * The failure handling strategy of a client if applying the workspace edit
215
- * failes.
216
- */
217
- failureHandling?: FailureHandlingKind;
218
- };
203
+ workspaceEdit?: WorkspaceEditClientCapabilities;
219
204
  /**
220
205
  * Capabilities specific to the `workspace/didChangeConfiguration` notification.
221
206
  */
222
- didChangeConfiguration?: {
223
- /**
224
- * Did change configuration notification supports dynamic registration.
225
- */
226
- dynamicRegistration?: boolean;
227
- };
207
+ didChangeConfiguration?: DidChangeConfigurationClientCapabilities;
228
208
  /**
229
209
  * Capabilities specific to the `workspace/didChangeWatchedFiles` notification.
230
210
  */
231
- didChangeWatchedFiles?: {
232
- /**
233
- * Did change watched files notification supports dynamic registration. Please note
234
- * that the current protocol doesn't support static configuration for file changes
235
- * from the server side.
236
- */
237
- dynamicRegistration?: boolean;
238
- };
211
+ didChangeWatchedFiles?: DidChangeWatchedFilesClientCapabilities;
239
212
  /**
240
213
  * Capabilities specific to the `workspace/symbol` request.
241
214
  */
242
- symbol?: {
243
- /**
244
- * Symbol request supports dynamic registration.
245
- */
246
- dynamicRegistration?: boolean;
247
- /**
248
- * Specific capabilities for the `SymbolKind` in the `workspace/symbol` request.
249
- */
250
- symbolKind?: {
251
- /**
252
- * The symbol kind values the client supports. When this
253
- * property exists the client also guarantees that it will
254
- * handle values outside its set gracefully and falls back
255
- * to a default value when unknown.
256
- *
257
- * If this property is not present the client only supports
258
- * the symbol kinds from `File` to `Array` as defined in
259
- * the initial version of the protocol.
260
- */
261
- valueSet?: SymbolKind[];
262
- };
263
- };
215
+ symbol?: WorkspaceSymbolClientCapabilities;
264
216
  /**
265
217
  * Capabilities specific to the `workspace/executeCommand` request.
266
218
  */
267
- executeCommand?: {
268
- /**
269
- * Execute command supports dynamic registration.
270
- */
271
- dynamicRegistration?: boolean;
272
- };
219
+ executeCommand?: ExecuteCommandClientCapabilities;
273
220
  }
274
221
  /**
275
222
  * Text document specific client capabilities.
@@ -278,289 +225,101 @@ export interface TextDocumentClientCapabilities {
278
225
  /**
279
226
  * Defines which synchronization capabilities the client supports.
280
227
  */
281
- synchronization?: {
282
- /**
283
- * Whether text document synchronization supports dynamic registration.
284
- */
285
- dynamicRegistration?: boolean;
286
- /**
287
- * The client supports sending will save notifications.
288
- */
289
- willSave?: boolean;
290
- /**
291
- * The client supports sending a will save request and
292
- * waits for a response providing text edits which will
293
- * be applied to the document before it is saved.
294
- */
295
- willSaveWaitUntil?: boolean;
296
- /**
297
- * The client supports did save notifications.
298
- */
299
- didSave?: boolean;
300
- };
228
+ synchronization?: TextDocumentSyncClientCapabilities;
301
229
  /**
302
230
  * Capabilities specific to the `textDocument/completion`
303
231
  */
304
- completion?: {
305
- /**
306
- * Whether completion supports dynamic registration.
307
- */
308
- dynamicRegistration?: boolean;
309
- /**
310
- * The client supports the following `CompletionItem` specific
311
- * capabilities.
312
- */
313
- completionItem?: {
314
- /**
315
- * Client supports snippets as insert text.
316
- *
317
- * A snippet can define tab stops and placeholders with `$1`, `$2`
318
- * and `${3:foo}`. `$0` defines the final tab stop, it defaults to
319
- * the end of the snippet. Placeholders with equal identifiers are linked,
320
- * that is typing in one will update others too.
321
- */
322
- snippetSupport?: boolean;
323
- /**
324
- * Client supports commit characters on a completion item.
325
- */
326
- commitCharactersSupport?: boolean;
327
- /**
328
- * Client supports the follow content formats for the documentation
329
- * property. The order describes the preferred format of the client.
330
- */
331
- documentationFormat?: MarkupKind[];
332
- /**
333
- * Client supports the deprecated property on a completion item.
334
- */
335
- deprecatedSupport?: boolean;
336
- /**
337
- * Client supports the preselect property on a completion item.
338
- */
339
- preselectSupport?: boolean;
340
- };
341
- completionItemKind?: {
342
- /**
343
- * The completion item kind values the client supports. When this
344
- * property exists the client also guarantees that it will
345
- * handle values outside its set gracefully and falls back
346
- * to a default value when unknown.
347
- *
348
- * If this property is not present the client only supports
349
- * the completion items kinds from `Text` to `Reference` as defined in
350
- * the initial version of the protocol.
351
- */
352
- valueSet?: CompletionItemKind[];
353
- };
354
- /**
355
- * The client supports to send additional context information for a
356
- * `textDocument/completion` requestion.
357
- */
358
- contextSupport?: boolean;
359
- };
232
+ completion?: CompletionClientCapabilities;
360
233
  /**
361
234
  * Capabilities specific to the `textDocument/hover`
362
235
  */
363
- hover?: {
364
- /**
365
- * Whether hover supports dynamic registration.
366
- */
367
- dynamicRegistration?: boolean;
368
- /**
369
- * Client supports the follow content formats for the content
370
- * property. The order describes the preferred format of the client.
371
- */
372
- contentFormat?: MarkupKind[];
373
- };
236
+ hover?: HoverClientCapabilities;
374
237
  /**
375
238
  * Capabilities specific to the `textDocument/signatureHelp`
376
239
  */
377
- signatureHelp?: {
378
- /**
379
- * Whether signature help supports dynamic registration.
380
- */
381
- dynamicRegistration?: boolean;
382
- /**
383
- * The client supports the following `SignatureInformation`
384
- * specific properties.
385
- */
386
- signatureInformation?: {
387
- /**
388
- * Client supports the follow content formats for the documentation
389
- * property. The order describes the preferred format of the client.
390
- */
391
- documentationFormat?: MarkupKind[];
392
- /**
393
- * Client capabilities specific to parameter information.
394
- */
395
- parameterInformation?: {
396
- /**
397
- * The client supports processing label offsets instead of a
398
- * simple label string.
399
- */
400
- labelOffsetSupport?: boolean;
401
- };
402
- };
403
- };
240
+ signatureHelp?: SignatureHelpClientCapabilities;
404
241
  /**
405
- * Capabilities specific to the `textDocument/references`
242
+ * Capabilities specific to the `textDocument/declaration`
243
+ *
244
+ * @since 3.14.0
406
245
  */
407
- references?: {
408
- /**
409
- * Whether references supports dynamic registration.
410
- */
411
- dynamicRegistration?: boolean;
412
- };
246
+ declaration?: DeclarationClientCapabilities;
413
247
  /**
414
- * Capabilities specific to the `textDocument/documentHighlight`
248
+ * Capabilities specific to the `textDocument/definition`
415
249
  */
416
- documentHighlight?: {
417
- /**
418
- * Whether document highlight supports dynamic registration.
419
- */
420
- dynamicRegistration?: boolean;
421
- };
250
+ definition?: DefinitionClientCapabilities;
422
251
  /**
423
- * Capabilities specific to the `textDocument/documentSymbol`
252
+ * Capabilities specific to the `textDocument/typeDefinition`
253
+ *
254
+ * @since 3.6.0
424
255
  */
425
- documentSymbol?: {
426
- /**
427
- * Whether document symbol supports dynamic registration.
428
- */
429
- dynamicRegistration?: boolean;
430
- /**
431
- * Specific capabilities for the `SymbolKind`.
432
- */
433
- symbolKind?: {
434
- /**
435
- * The symbol kind values the client supports. When this
436
- * property exists the client also guarantees that it will
437
- * handle values outside its set gracefully and falls back
438
- * to a default value when unknown.
439
- *
440
- * If this property is not present the client only supports
441
- * the symbol kinds from `File` to `Array` as defined in
442
- * the initial version of the protocol.
443
- */
444
- valueSet?: SymbolKind[];
445
- };
446
- /**
447
- * The client support hierarchical document symbols.
448
- */
449
- hierarchicalDocumentSymbolSupport?: boolean;
450
- };
256
+ typeDefinition?: TypeDefinitionClientCapabilities;
451
257
  /**
452
- * Capabilities specific to the `textDocument/formatting`
258
+ * Capabilities specific to the `textDocument/implementation`
259
+ *
260
+ * @since 3.6.0
453
261
  */
454
- formatting?: {
455
- /**
456
- * Whether formatting supports dynamic registration.
457
- */
458
- dynamicRegistration?: boolean;
459
- };
262
+ implementation?: ImplementationClientCapabilities;
460
263
  /**
461
- * Capabilities specific to the `textDocument/rangeFormatting`
264
+ * Capabilities specific to the `textDocument/references`
462
265
  */
463
- rangeFormatting?: {
464
- /**
465
- * Whether range formatting supports dynamic registration.
466
- */
467
- dynamicRegistration?: boolean;
468
- };
266
+ references?: ReferenceClientCapabilities;
469
267
  /**
470
- * Capabilities specific to the `textDocument/onTypeFormatting`
268
+ * Capabilities specific to the `textDocument/documentHighlight`
471
269
  */
472
- onTypeFormatting?: {
473
- /**
474
- * Whether on type formatting supports dynamic registration.
475
- */
476
- dynamicRegistration?: boolean;
477
- };
270
+ documentHighlight?: DocumentHighlightClientCapabilities;
478
271
  /**
479
- * Capabilities specific to the `textDocument/definition`
272
+ * Capabilities specific to the `textDocument/documentSymbol`
480
273
  */
481
- definition?: {
482
- /**
483
- * Whether definition supports dynamic registration.
484
- */
485
- dynamicRegistration?: boolean;
486
- /**
487
- * The client supports additional metadata in the form of definition links.
488
- */
489
- linkSupport?: boolean;
490
- };
274
+ documentSymbol?: DocumentSymbolClientCapabilities;
491
275
  /**
492
276
  * Capabilities specific to the `textDocument/codeAction`
493
277
  */
494
- codeAction?: {
495
- /**
496
- * Whether code action supports dynamic registration.
497
- */
498
- dynamicRegistration?: boolean;
499
- /**
500
- * The client support code action literals as a valid
501
- * response of the `textDocument/codeAction` request.
502
- */
503
- codeActionLiteralSupport?: {
504
- /**
505
- * The code action kind is support with the following value
506
- * set.
507
- */
508
- codeActionKind: {
509
- /**
510
- * The code action kind values the client supports. When this
511
- * property exists the client also guarantees that it will
512
- * handle values outside its set gracefully and falls back
513
- * to a default value when unknown.
514
- */
515
- valueSet: CodeActionKind[];
516
- };
517
- };
518
- };
278
+ codeAction?: CodeActionClientCapabilities;
519
279
  /**
520
280
  * Capabilities specific to the `textDocument/codeLens`
521
281
  */
522
- codeLens?: {
523
- /**
524
- * Whether code lens supports dynamic registration.
525
- */
526
- dynamicRegistration?: boolean;
527
- };
282
+ codeLens?: CodeLensClientCapabilities;
528
283
  /**
529
284
  * Capabilities specific to the `textDocument/documentLink`
530
285
  */
531
- documentLink?: {
532
- /**
533
- * Whether document link supports dynamic registration.
534
- */
535
- dynamicRegistration?: boolean;
536
- };
286
+ documentLink?: DocumentLinkClientCapabilities;
287
+ /**
288
+ * Capabilities specific to the `textDocument/documentColor`
289
+ */
290
+ colorProvider?: DocumentColorClientCapabilities;
291
+ /**
292
+ * Capabilities specific to the `textDocument/formatting`
293
+ */
294
+ formatting?: DocumentFormattingClientCapabilities;
295
+ /**
296
+ * Capabilities specific to the `textDocument/rangeFormatting`
297
+ */
298
+ rangeFormatting?: DocumentRangeFormattingClientCapabilities;
299
+ /**
300
+ * Capabilities specific to the `textDocument/onTypeFormatting`
301
+ */
302
+ onTypeFormatting?: DocumentOnTypeFormattingClientCapabilities;
537
303
  /**
538
304
  * Capabilities specific to the `textDocument/rename`
539
305
  */
540
- rename?: {
541
- /**
542
- * Whether rename supports dynamic registration.
543
- */
544
- dynamicRegistration?: boolean;
545
- /**
546
- * Client supports testing for validity of rename operations
547
- * before execution.
548
- */
549
- prepareSupport?: boolean;
550
- };
306
+ rename?: RenameClientCapabilities;
307
+ /**
308
+ * Capabilities specific to `textDocument/foldingRange` requests.
309
+ *
310
+ * @since 3.10.0
311
+ */
312
+ foldingRange?: FoldingRangeClientCapabilities;
313
+ /**
314
+ * Capabilities specific to `textDocument/selectionRange` requests
315
+ *
316
+ * @since 3.15.0
317
+ */
318
+ selectionRange?: SelectionRangeClientCapabilities;
551
319
  /**
552
320
  * Capabilities specific to `textDocument/publishDiagnostics`.
553
321
  */
554
- publishDiagnostics?: {
555
- /**
556
- * Whether the clients accepts diagnostics with related information.
557
- */
558
- relatedInformation?: boolean;
559
- /**
560
- * Client supports the tag property to provide meta data about a diagnostic.
561
- */
562
- tagSupport?: boolean;
563
- };
322
+ publishDiagnostics?: PublishDiagnosticsClientCapabilities;
564
323
  }
565
324
  /**
566
325
  * Defines the capabilities provided by the client.
@@ -583,29 +342,7 @@ export interface _ClientCapabilities {
583
342
  */
584
343
  experimental?: any;
585
344
  }
586
- export declare type ClientCapabilities = _ClientCapabilities & ImplementationClientCapabilities & TypeDefinitionClientCapabilities & WorkspaceFoldersClientCapabilities & ConfigurationClientCapabilities & ColorClientCapabilities & FoldingRangeClientCapabilities & DeclarationClientCapabilities & SelectionRangeClientCapabilities;
587
- /**
588
- * Defines how the host (editor) should sync
589
- * document changes to the language server.
590
- */
591
- export declare namespace TextDocumentSyncKind {
592
- /**
593
- * Documents should not be synced at all.
594
- */
595
- const None = 0;
596
- /**
597
- * Documents are synced by always sending the full content
598
- * of the document.
599
- */
600
- const Full = 1;
601
- /**
602
- * Documents are synced by sending the full content on open.
603
- * After that only incremental updates to the document are
604
- * send.
605
- */
606
- const Incremental = 2;
607
- }
608
- export declare type TextDocumentSyncKind = 0 | 1 | 2;
345
+ export declare type ClientCapabilities = _ClientCapabilities & WorkspaceFoldersClientCapabilities & ConfigurationClientCapabilities & SelectionRangeClientCapabilities;
609
346
  /**
610
347
  * Static registration options to be returned in the initialize
611
348
  * request.
@@ -643,144 +380,6 @@ export interface TextDocumentRegistrationOptions {
643
380
  export declare namespace TextDocumentRegistrationOptions {
644
381
  function is(value: any): value is TextDocumentRegistrationOptions;
645
382
  }
646
- /**
647
- * Completion options.
648
- */
649
- export interface CompletionOptions extends WorkDoneProgressOptions {
650
- /**
651
- * Most tools trigger completion request automatically without explicitly requesting
652
- * it using a keyboard shortcut (e.g. Ctrl+Space). Typically they do so when the user
653
- * starts to type an identifier. For example if the user types `c` in a JavaScript file
654
- * code complete will automatically pop up present `console` besides others as a
655
- * completion item. Characters that make up identifiers don't need to be listed here.
656
- *
657
- * If code complete should automatically be trigger on characters not being valid inside
658
- * an identifier (for example `.` in JavaScript) list them in `triggerCharacters`.
659
- */
660
- triggerCharacters?: string[];
661
- /**
662
- * The list of all possible characters that commit a completion. This field can be used
663
- * if clients don't support individual commmit characters per completion item. See
664
- * `ClientCapabilities.textDocument.completion.completionItem.commitCharactersSupport`
665
- */
666
- allCommitCharacters?: string[];
667
- /**
668
- * The server provides support to resolve additional
669
- * information for a completion item.
670
- */
671
- resolveProvider?: boolean;
672
- }
673
- /**
674
- * Hover options.
675
- */
676
- export interface HoverOptions extends WorkDoneProgressOptions {
677
- }
678
- /**
679
- * Signature help options.
680
- */
681
- export interface SignatureHelpOptions extends WorkDoneProgressOptions {
682
- /**
683
- * The characters that trigger signature help
684
- * automatically.
685
- */
686
- triggerCharacters?: string[];
687
- }
688
- /**
689
- * Definition options.
690
- */
691
- export interface DefinitionOptions extends WorkDoneProgressOptions {
692
- }
693
- /**
694
- * Reference options.
695
- */
696
- export interface ReferenceOptions extends WorkDoneProgressOptions {
697
- }
698
- /**
699
- * Document highlight options.
700
- */
701
- export interface DocumentHighlightOptions extends WorkDoneProgressOptions {
702
- }
703
- /**
704
- * Document symbol options.
705
- */
706
- export interface DocumentSymbolOptions extends WorkDoneProgressOptions {
707
- }
708
- /**
709
- * Workspace symbol options.
710
- */
711
- export interface WorkspaceSymbolOptions extends WorkDoneProgressOptions {
712
- }
713
- /**
714
- * Code Action options.
715
- */
716
- export interface CodeActionOptions extends WorkDoneProgressOptions {
717
- /**
718
- * CodeActionKinds that this server may return.
719
- *
720
- * The list of kinds may be generic, such as `CodeActionKind.Refactor`, or the server
721
- * may list out every specific kind they provide.
722
- */
723
- codeActionKinds?: CodeActionKind[];
724
- }
725
- /**
726
- * Code Lens options.
727
- */
728
- export interface CodeLensOptions extends WorkDoneProgressOptions {
729
- /**
730
- * Code lens has a resolve provider as well.
731
- */
732
- resolveProvider?: boolean;
733
- }
734
- /**
735
- * Document formatting options.
736
- */
737
- export interface DocumentFormattingOptions extends WorkDoneProgressOptions {
738
- }
739
- /**
740
- * Document range formatting options.
741
- */
742
- export interface DocumentRangeFormattingOptions extends WorkDoneProgressOptions {
743
- }
744
- /**
745
- * Format document on type options
746
- */
747
- export interface DocumentOnTypeFormattingOptions {
748
- /**
749
- * A character on which formatting should be triggered, like `}`.
750
- */
751
- firstTriggerCharacter: string;
752
- /**
753
- * More trigger characters.
754
- */
755
- moreTriggerCharacter?: string[];
756
- }
757
- /**
758
- * Rename options
759
- */
760
- export interface RenameOptions extends WorkDoneProgressOptions {
761
- /**
762
- * Renames should be checked and tested before being executed.
763
- */
764
- prepareProvider?: boolean;
765
- }
766
- /**
767
- * Document link options
768
- */
769
- export interface DocumentLinkOptions extends WorkDoneProgressOptions {
770
- /**
771
- * Document links have a resolve provider as well.
772
- */
773
- resolveProvider?: boolean;
774
- }
775
- /**
776
- * Execute command options.
777
- */
778
- export interface ExecuteCommandOptions extends WorkDoneProgressOptions {
779
- /**
780
- * The commands to be executed on the server
781
- */
782
- commands: string[];
783
- }
784
383
  /**
785
384
  * Save options.
786
385
  */
@@ -790,33 +389,6 @@ export interface SaveOptions {
790
389
  */
791
390
  includeText?: boolean;
792
391
  }
793
- export interface TextDocumentSyncOptions {
794
- /**
795
- * Open and close notifications are sent to the server. If omitted open close notification should not
796
- * be sent.
797
- */
798
- openClose?: boolean;
799
- /**
800
- * Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full
801
- * and TextDocumentSyncKind.Incremental. If omitted it defaults to TextDocumentSyncKind.None.
802
- */
803
- change?: TextDocumentSyncKind;
804
- /**
805
- * If present will save notifications are sent to the server. If omitted the notification should not be
806
- * sent.
807
- */
808
- willSave?: boolean;
809
- /**
810
- * If present will save wait until requests are sent to the server. If omitted the request should not be
811
- * sent.
812
- */
813
- willSaveWaitUntil?: boolean;
814
- /**
815
- * If present save notifications are sent to the server. If omitted the notification should not be
816
- * sent.
817
- */
818
- save?: SaveOptions;
819
- }
820
392
  export interface WorkDoneProgressOptions {
821
393
  workDoneProgress?: boolean;
822
394
  }
@@ -840,22 +412,34 @@ export interface _ServerCapabilities<T = any> {
840
412
  * for backwards compatibility the TextDocumentSyncKind number.
841
413
  */
842
414
  textDocumentSync?: TextDocumentSyncOptions | TextDocumentSyncKind;
843
- /**
844
- * The server provides hover support.
845
- */
846
- hoverProvider?: boolean | HoverOptions;
847
415
  /**
848
416
  * The server provides completion support.
849
417
  */
850
418
  completionProvider?: CompletionOptions;
419
+ /**
420
+ * The server provides hover support.
421
+ */
422
+ hoverProvider?: boolean | HoverOptions;
851
423
  /**
852
424
  * The server provides signature help support.
853
425
  */
854
426
  signatureHelpProvider?: SignatureHelpOptions;
427
+ /**
428
+ * The server provides Goto Declaration support.
429
+ */
430
+ declarationProvider?: boolean | DeclarationOptions | DeclarationRegistrationOptions;
855
431
  /**
856
432
  * The server provides goto definition support.
857
433
  */
858
434
  definitionProvider?: boolean | DefinitionOptions;
435
+ /**
436
+ * The server provides Goto Type Definition support.
437
+ */
438
+ typeDefinitionProvider?: boolean | TypeDefinitionOptions | TypeDefinitionRegistrationOptions;
439
+ /**
440
+ * The server provides Goto Implementation support.
441
+ */
442
+ implementationProvider?: boolean | ImplementationOptions | ImplementationRegistrationOptions;
859
443
  /**
860
444
  * The server provides find references support.
861
445
  */
@@ -868,10 +452,6 @@ export interface _ServerCapabilities<T = any> {
868
452
  * The server provides document symbol support.
869
453
  */
870
454
  documentSymbolProvider?: boolean | DocumentSymbolOptions;
871
- /**
872
- * The server provides workspace symbol support.
873
- */
874
- workspaceSymbolProvider?: boolean | WorkspaceSymbolOptions;
875
455
  /**
876
456
  * The server provides code actions. CodeActionOptions may only be
877
457
  * specified if the client states that it supports
@@ -881,7 +461,19 @@ export interface _ServerCapabilities<T = any> {
881
461
  /**
882
462
  * The server provides code lens.
883
463
  */
884
- codeLensProvider?: CodeLensOptions;
464
+ codeLensProvider?: CodeLensOptions;
465
+ /**
466
+ * The server provides document link support.
467
+ */
468
+ documentLinkProvider?: DocumentLinkOptions;
469
+ /**
470
+ * The server provides color provider support.
471
+ */
472
+ colorProvider?: boolean | DocumentColorOptions | DocumentColorRegistrationOptions;
473
+ /**
474
+ * The server provides workspace symbol support.
475
+ */
476
+ workspaceSymbolProvider?: boolean | WorkspaceSymbolOptions;
885
477
  /**
886
478
  * The server provides document formatting.
887
479
  */
@@ -901,9 +493,13 @@ export interface _ServerCapabilities<T = any> {
901
493
  */
902
494
  renameProvider?: boolean | RenameOptions;
903
495
  /**
904
- * The server provides document link support.
496
+ * The server provides folding provider support.
905
497
  */
906
- documentLinkProvider?: DocumentLinkOptions;
498
+ foldingRangeProvider?: boolean | FoldingRangeOptions | FoldingRangeRegistrationOptions;
499
+ /**
500
+ * The server provides selection range support.
501
+ */
502
+ selectionRangeProvider?: boolean | SelectionRangeOptions | SelectionRangeRegistrationOptions;
907
503
  /**
908
504
  * The server provides execute command support.
909
505
  */
@@ -913,7 +509,7 @@ export interface _ServerCapabilities<T = any> {
913
509
  */
914
510
  experimental?: T;
915
511
  }
916
- export declare type ServerCapabilities<T = any> = _ServerCapabilities<T> & ImplementationServerCapabilities & TypeDefinitionServerCapabilities & WorkspaceFoldersServerCapabilities & ColorServerCapabilities & FoldingRangeServerCapabilities & DeclarationServerCapabilities & SelectionRangeServerCapabilities;
512
+ export declare type ServerCapabilities<T = any> = _ServerCapabilities<T> & WorkspaceFoldersServerCapabilities;
917
513
  /**
918
514
  * The initialize request is sent from the client to the server.
919
515
  * It is sent once as the request after starting up the server.
@@ -933,6 +529,21 @@ export interface _InitializeParams extends WorkDoneProgressParams {
933
529
  * the server.
934
530
  */
935
531
  processId: number | null;
532
+ /**
533
+ * Information about the client
534
+ *
535
+ * @since 3.15.0
536
+ */
537
+ clientInfo?: {
538
+ /**
539
+ * The name of the client as defined by the client.
540
+ */
541
+ name: string;
542
+ /**
543
+ * The client's version as defined by the client.
544
+ */
545
+ version?: string;
546
+ };
936
547
  /**
937
548
  * The rootPath of the workspace. Is null
938
549
  * if no folder is open.
@@ -970,6 +581,21 @@ export interface InitializeResult<T = any> {
970
581
  * The capabilities the language server provides.
971
582
  */
972
583
  capabilities: ServerCapabilities<T>;
584
+ /**
585
+ * Information about the server.
586
+ *
587
+ * @since 3.15.0
588
+ */
589
+ serverInfo?: {
590
+ /**
591
+ * The name of the server as defined by the server.
592
+ */
593
+ name: string;
594
+ /**
595
+ * The servers's version as defined by the server.
596
+ */
597
+ version?: string;
598
+ };
973
599
  /**
974
600
  * Custom initialization results.
975
601
  */
@@ -1025,6 +651,12 @@ export declare namespace ShutdownRequest {
1025
651
  export declare namespace ExitNotification {
1026
652
  const type: NotificationType0<void>;
1027
653
  }
654
+ export interface DidChangeConfigurationClientCapabilities {
655
+ /**
656
+ * Did change configuration notification supports dynamic registration.
657
+ */
658
+ dynamicRegistration?: boolean;
659
+ }
1028
660
  /**
1029
661
  * The configuration change notification is sent from the client to the server
1030
662
  * when the client's configuration has changed. The notification contains
@@ -1141,6 +773,75 @@ export interface LogMessageParams {
1141
773
  export declare namespace TelemetryEventNotification {
1142
774
  const type: NotificationType<any, void>;
1143
775
  }
776
+ export interface TextDocumentSyncClientCapabilities {
777
+ /**
778
+ * Whether text document synchronization supports dynamic registration.
779
+ */
780
+ dynamicRegistration?: boolean;
781
+ /**
782
+ * The client supports sending will save notifications.
783
+ */
784
+ willSave?: boolean;
785
+ /**
786
+ * The client supports sending a will save request and
787
+ * waits for a response providing text edits which will
788
+ * be applied to the document before it is saved.
789
+ */
790
+ willSaveWaitUntil?: boolean;
791
+ /**
792
+ * The client supports did save notifications.
793
+ */
794
+ didSave?: boolean;
795
+ }
796
+ /**
797
+ * Defines how the host (editor) should sync
798
+ * document changes to the language server.
799
+ */
800
+ export declare namespace TextDocumentSyncKind {
801
+ /**
802
+ * Documents should not be synced at all.
803
+ */
804
+ const None = 0;
805
+ /**
806
+ * Documents are synced by always sending the full content
807
+ * of the document.
808
+ */
809
+ const Full = 1;
810
+ /**
811
+ * Documents are synced by sending the full content on open.
812
+ * After that only incremental updates to the document are
813
+ * send.
814
+ */
815
+ const Incremental = 2;
816
+ }
817
+ export declare type TextDocumentSyncKind = 0 | 1 | 2;
818
+ export interface TextDocumentSyncOptions {
819
+ /**
820
+ * Open and close notifications are sent to the server. If omitted open close notification should not
821
+ * be sent.
822
+ */
823
+ openClose?: boolean;
824
+ /**
825
+ * Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full
826
+ * and TextDocumentSyncKind.Incremental. If omitted it defaults to TextDocumentSyncKind.None.
827
+ */
828
+ change?: TextDocumentSyncKind;
829
+ /**
830
+ * If present will save notifications are sent to the server. If omitted the notification should not be
831
+ * sent.
832
+ */
833
+ willSave?: boolean;
834
+ /**
835
+ * If present will save wait until requests are sent to the server. If omitted the request should not be
836
+ * sent.
837
+ */
838
+ willSaveWaitUntil?: boolean;
839
+ /**
840
+ * If present save notifications are sent to the server. If omitted the notification should not be
841
+ * sent.
842
+ */
843
+ save?: SaveOptions;
844
+ }
1144
845
  /**
1145
846
  * The parameters send in a open text document notification
1146
847
  */
@@ -1274,6 +975,14 @@ export declare namespace WillSaveTextDocumentNotification {
1274
975
  export declare namespace WillSaveTextDocumentWaitUntilRequest {
1275
976
  const type: RequestType<WillSaveTextDocumentParams, TextEdit[] | null, void, TextDocumentRegistrationOptions>;
1276
977
  }
978
+ export interface DidChangeWatchedFilesClientCapabilities {
979
+ /**
980
+ * Did change watched files notification supports dynamic registration. Please note
981
+ * that the current protocol doesn't support static configuration for file changes
982
+ * from the server side.
983
+ */
984
+ dynamicRegistration?: boolean;
985
+ }
1277
986
  /**
1278
987
  * The watched files notification is sent from the client to the server when
1279
988
  * the client detects changes to file watched by the language client.
@@ -1363,11 +1072,25 @@ export declare namespace WatchKind {
1363
1072
  const Delete = 4;
1364
1073
  }
1365
1074
  /**
1366
- * Diagnostics notification are sent from the server to the client to signal
1367
- * results of validation runs.
1075
+ * The publish diagnostic client capabilities.
1368
1076
  */
1369
- export declare namespace PublishDiagnosticsNotification {
1370
- const type: NotificationType<PublishDiagnosticsParams, void>;
1077
+ export interface PublishDiagnosticsClientCapabilities {
1078
+ /**
1079
+ * Whether the clients accepts diagnostics with related information.
1080
+ */
1081
+ relatedInformation?: boolean;
1082
+ /**
1083
+ * Client supports the tag property to provide meta data about a diagnostic.
1084
+ * Clients supporting tags have to handle unknown tags gracefully.
1085
+ *
1086
+ * @since 3.15.0
1087
+ */
1088
+ tagSupport?: {
1089
+ /**
1090
+ * The tags supported by the client.
1091
+ */
1092
+ valueSet: DiagnosticTag[];
1093
+ };
1371
1094
  }
1372
1095
  /**
1373
1096
  * The publish diagnostic notification's parameters.
@@ -1380,7 +1103,7 @@ export interface PublishDiagnosticsParams {
1380
1103
  /**
1381
1104
  * Optional the version number of the document the diagnostics are published for.
1382
1105
  *
1383
- * @since 3.15
1106
+ * @since 3.15.0
1384
1107
  */
1385
1108
  version?: number;
1386
1109
  /**
@@ -1388,6 +1111,86 @@ export interface PublishDiagnosticsParams {
1388
1111
  */
1389
1112
  diagnostics: Diagnostic[];
1390
1113
  }
1114
+ /**
1115
+ * Diagnostics notification are sent from the server to the client to signal
1116
+ * results of validation runs.
1117
+ */
1118
+ export declare namespace PublishDiagnosticsNotification {
1119
+ const type: NotificationType<PublishDiagnosticsParams, void>;
1120
+ }
1121
+ /**
1122
+ * Completion client capabilities
1123
+ */
1124
+ export interface CompletionClientCapabilities {
1125
+ /**
1126
+ * Whether completion supports dynamic registration.
1127
+ */
1128
+ dynamicRegistration?: boolean;
1129
+ /**
1130
+ * The client supports the following `CompletionItem` specific
1131
+ * capabilities.
1132
+ */
1133
+ completionItem?: {
1134
+ /**
1135
+ * Client supports snippets as insert text.
1136
+ *
1137
+ * A snippet can define tab stops and placeholders with `$1`, `$2`
1138
+ * and `${3:foo}`. `$0` defines the final tab stop, it defaults to
1139
+ * the end of the snippet. Placeholders with equal identifiers are linked,
1140
+ * that is typing in one will update others too.
1141
+ */
1142
+ snippetSupport?: boolean;
1143
+ /**
1144
+ * Client supports commit characters on a completion item.
1145
+ */
1146
+ commitCharactersSupport?: boolean;
1147
+ /**
1148
+ * Client supports the follow content formats for the documentation
1149
+ * property. The order describes the preferred format of the client.
1150
+ */
1151
+ documentationFormat?: MarkupKind[];
1152
+ /**
1153
+ * Client supports the deprecated property on a completion item.
1154
+ */
1155
+ deprecatedSupport?: boolean;
1156
+ /**
1157
+ * Client supports the preselect property on a completion item.
1158
+ */
1159
+ preselectSupport?: boolean;
1160
+ /**
1161
+ * Client supports the tag property on a completion item. Clients supporting
1162
+ * tags have to handle unknown tags gracefully. Clients especially need to
1163
+ * preserve unknown tags when sending a completion item back to the server in
1164
+ * a resolve call.
1165
+ *
1166
+ * @since 3.15.0
1167
+ */
1168
+ tagSupport?: {
1169
+ /**
1170
+ * The tags supported by the client.
1171
+ */
1172
+ valueSet: CompletionItemTag[];
1173
+ };
1174
+ };
1175
+ completionItemKind?: {
1176
+ /**
1177
+ * The completion item kind values the client supports. When this
1178
+ * property exists the client also guarantees that it will
1179
+ * handle values outside its set gracefully and falls back
1180
+ * to a default value when unknown.
1181
+ *
1182
+ * If this property is not present the client only supports
1183
+ * the completion items kinds from `Text` to `Reference` as defined in
1184
+ * the initial version of the protocol.
1185
+ */
1186
+ valueSet?: CompletionItemKind[];
1187
+ };
1188
+ /**
1189
+ * The client supports to send additional context information for a
1190
+ * `textDocument/completion` requestion.
1191
+ */
1192
+ contextSupport?: boolean;
1193
+ }
1391
1194
  /**
1392
1195
  * How a completion was triggered
1393
1196
  */
@@ -1428,10 +1231,39 @@ export interface CompletionContext {
1428
1231
  export interface CompletionParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
1429
1232
  /**
1430
1233
  * The completion context. This is only available it the client specifies
1431
- * to send this using `ClientCapabilities.textDocument.completion.contextSupport === true`
1234
+ * to send this using the client capability `textDocument.completion.contextSupport === true`
1432
1235
  */
1433
1236
  context?: CompletionContext;
1434
1237
  }
1238
+ /**
1239
+ * Completion options.
1240
+ */
1241
+ export interface CompletionOptions extends WorkDoneProgressOptions {
1242
+ /**
1243
+ * Most tools trigger completion request automatically without explicitly requesting
1244
+ * it using a keyboard shortcut (e.g. Ctrl+Space). Typically they do so when the user
1245
+ * starts to type an identifier. For example if the user types `c` in a JavaScript file
1246
+ * code complete will automatically pop up present `console` besides others as a
1247
+ * completion item. Characters that make up identifiers don't need to be listed here.
1248
+ *
1249
+ * If code complete should automatically be trigger on characters not being valid inside
1250
+ * an identifier (for example `.` in JavaScript) list them in `triggerCharacters`.
1251
+ */
1252
+ triggerCharacters?: string[];
1253
+ /**
1254
+ * The list of all possible characters that commit a completion. This field can be used
1255
+ * if clients don't support individual commmit characters per completion item. See
1256
+ * `ClientCapabilities.textDocument.completion.completionItem.commitCharactersSupport`
1257
+ *
1258
+ * @since 3.2.0
1259
+ */
1260
+ allCommitCharacters?: string[];
1261
+ /**
1262
+ * The server provides support to resolve additional
1263
+ * information for a completion item.
1264
+ */
1265
+ resolveProvider?: boolean;
1266
+ }
1435
1267
  /**
1436
1268
  * Registration options for a [CompletionRequest](#CompletionRequest).
1437
1269
  */
@@ -1460,6 +1292,22 @@ export declare namespace CompletionRequest {
1460
1292
  export declare namespace CompletionResolveRequest {
1461
1293
  const type: RequestType<CompletionItem, CompletionItem, void, void>;
1462
1294
  }
1295
+ export interface HoverClientCapabilities {
1296
+ /**
1297
+ * Whether hover supports dynamic registration.
1298
+ */
1299
+ dynamicRegistration?: boolean;
1300
+ /**
1301
+ * Client supports the follow content formats for the content
1302
+ * property. The order describes the preferred format of the client.
1303
+ */
1304
+ contentFormat?: MarkupKind[];
1305
+ }
1306
+ /**
1307
+ * Hover options.
1308
+ */
1309
+ export interface HoverOptions extends WorkDoneProgressOptions {
1310
+ }
1463
1311
  /**
1464
1312
  * Parameters for a [HoverRequest](#HoverRequest).
1465
1313
  */
@@ -1478,10 +1326,127 @@ export interface HoverRegistrationOptions extends TextDocumentRegistrationOption
1478
1326
  export declare namespace HoverRequest {
1479
1327
  const type: RequestType<HoverParams, Hover | null, void, HoverRegistrationOptions>;
1480
1328
  }
1329
+ /**
1330
+ * Client Capabilities for a [SignatureHelpRequest](#SignatureHelpRequest).
1331
+ */
1332
+ export interface SignatureHelpClientCapabilities {
1333
+ /**
1334
+ * Whether signature help supports dynamic registration.
1335
+ */
1336
+ dynamicRegistration?: boolean;
1337
+ /**
1338
+ * The client supports the following `SignatureInformation`
1339
+ * specific properties.
1340
+ */
1341
+ signatureInformation?: {
1342
+ /**
1343
+ * Client supports the follow content formats for the documentation
1344
+ * property. The order describes the preferred format of the client.
1345
+ */
1346
+ documentationFormat?: MarkupKind[];
1347
+ /**
1348
+ * Client capabilities specific to parameter information.
1349
+ */
1350
+ parameterInformation?: {
1351
+ /**
1352
+ * The client supports processing label offsets instead of a
1353
+ * simple label string.
1354
+ *
1355
+ * @since 3.14.0
1356
+ */
1357
+ labelOffsetSupport?: boolean;
1358
+ };
1359
+ };
1360
+ /**
1361
+ * The client supports to send additional context information for a
1362
+ * `textDocument/signatureHelp` request. A client that opts into
1363
+ * contextSupport will also support the `retriggerCharacters` on
1364
+ * `SignatureHelpOptions`.
1365
+ *
1366
+ * @since 3.15.0
1367
+ */
1368
+ contextSupport?: boolean;
1369
+ }
1370
+ /**
1371
+ * Server Capabilities for a [SignatureHelpRequest](#SignatureHelpRequest).
1372
+ */
1373
+ export interface SignatureHelpOptions extends WorkDoneProgressOptions {
1374
+ /**
1375
+ * List of characters that trigger signature help.
1376
+ */
1377
+ triggerCharacters?: string[];
1378
+ /**
1379
+ * List of characters that re-trigger signature help.
1380
+ *
1381
+ * These trigger characters are only active when signature help is already showing. All trigger characters
1382
+ * are also counted as re-trigger characters.
1383
+ *
1384
+ * @since 3.15.0
1385
+ */
1386
+ retriggerCharacters?: string[];
1387
+ }
1388
+ /**
1389
+ * How a signature help was triggered.
1390
+ *
1391
+ * @since 3.15.0
1392
+ */
1393
+ export declare namespace SignatureHelpTriggerKind {
1394
+ /**
1395
+ * Signature help was invoked manually by the user or by a command.
1396
+ */
1397
+ const Invoked: 1;
1398
+ /**
1399
+ * Signature help was triggered by a trigger character.
1400
+ */
1401
+ const TriggerCharacter: 2;
1402
+ /**
1403
+ * Signature help was triggered by the cursor moving or by the document content changing.
1404
+ */
1405
+ const ContentChange: 3;
1406
+ }
1407
+ export declare type SignatureHelpTriggerKind = 1 | 2 | 3;
1408
+ /**
1409
+ * Additional information about the context in which a signature help request was triggered.
1410
+ *
1411
+ * @since 3.15.0
1412
+ */
1413
+ export interface SignatureHelpContext {
1414
+ /**
1415
+ * Action that caused signature help to be triggered.
1416
+ */
1417
+ triggerKind: SignatureHelpTriggerKind;
1418
+ /**
1419
+ * Character that caused signature help to be triggered.
1420
+ *
1421
+ * This is undefined when `triggerKind !== SignatureHelpTriggerKind.TriggerCharacter`
1422
+ */
1423
+ triggerCharacter?: string;
1424
+ /**
1425
+ * `true` if signature help was already showing when it was triggered.
1426
+ *
1427
+ * Retriggers occur when the signature help is already active and can be caused by actions such as
1428
+ * typing a trigger character, a cursor move, or document content changes.
1429
+ */
1430
+ isRetrigger: boolean;
1431
+ /**
1432
+ * The currently active `SignatureHelp`.
1433
+ *
1434
+ * The `activeSignatureHelp` has its `SignatureHelp.activeSignature` field updated based on
1435
+ * the user navigating through available signatures.
1436
+ */
1437
+ activeSignatureHelp?: SignatureHelp;
1438
+ }
1481
1439
  /**
1482
1440
  * Parameters for a [SignatureHelpRequest](#SignatureHelpRequest).
1483
1441
  */
1484
1442
  export interface SignatureHelpParams extends TextDocumentPositionParams, WorkDoneProgressParams {
1443
+ /**
1444
+ * The signature help context. This is only available if the client specifies
1445
+ * to send this using the client capability `textDocument.signatureHelp.contextSupport === true`
1446
+ *
1447
+ * @since 3.15.0
1448
+ */
1449
+ context?: SignatureHelpContext;
1485
1450
  }
1486
1451
  /**
1487
1452
  * Registration options for a [SignatureHelpRequest](#SignatureHelpRequest).
@@ -1492,7 +1457,27 @@ export declare namespace SignatureHelpRequest {
1492
1457
  const type: RequestType<SignatureHelpParams, SignatureHelp | null, void, SignatureHelpRegistrationOptions>;
1493
1458
  }
1494
1459
  /**
1495
- * Parameters for a [DefinitionParams](#DefinitionParams).
1460
+ * Client Capabilities for a [DefinitionRequest](#DefinitionRequest).
1461
+ */
1462
+ export interface DefinitionClientCapabilities {
1463
+ /**
1464
+ * Whether definition supports dynamic registration.
1465
+ */
1466
+ dynamicRegistration?: boolean;
1467
+ /**
1468
+ * The client supports additional metadata in the form of definition links.
1469
+ *
1470
+ * @since 3.14.0
1471
+ */
1472
+ linkSupport?: boolean;
1473
+ }
1474
+ /**
1475
+ * Server Capabilities for a [DefinitionRequest](#DefinitionRequest).
1476
+ */
1477
+ export interface DefinitionOptions extends WorkDoneProgressOptions {
1478
+ }
1479
+ /**
1480
+ * Parameters for a [DefinitionRequest](#DefinitionRequest).
1496
1481
  */
1497
1482
  export interface DefinitionParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
1498
1483
  }
@@ -1512,12 +1497,26 @@ export declare namespace DefinitionRequest {
1512
1497
  const type: RequestType<DefinitionParams, Location | Location[] | LocationLink[] | null, void, DefinitionRegistrationOptions>;
1513
1498
  const resultType: ProgressType<Location[] | LocationLink[]>;
1514
1499
  }
1500
+ /**
1501
+ * Client Capabilities for a [ReferencesRequest](#ReferencesRequest).
1502
+ */
1503
+ export interface ReferenceClientCapabilities {
1504
+ /**
1505
+ * Whether references supports dynamic registration.
1506
+ */
1507
+ dynamicRegistration?: boolean;
1508
+ }
1515
1509
  /**
1516
1510
  * Parameters for a [ReferencesRequest](#ReferencesRequest).
1517
1511
  */
1518
1512
  export interface ReferenceParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
1519
1513
  context: ReferenceContext;
1520
1514
  }
1515
+ /**
1516
+ * Reference options.
1517
+ */
1518
+ export interface ReferenceOptions extends WorkDoneProgressOptions {
1519
+ }
1521
1520
  /**
1522
1521
  * Registration options for a [ReferencesRequest](#ReferencesRequest).
1523
1522
  */
@@ -1533,11 +1532,25 @@ export declare namespace ReferencesRequest {
1533
1532
  const type: RequestType<ReferenceParams, Location[] | null, void, ReferenceRegistrationOptions>;
1534
1533
  const resultType: ProgressType<Location[]>;
1535
1534
  }
1535
+ /**
1536
+ * Client Capabilities for a [DocumentHighlightRequest](#DocumentHighlightRequest).
1537
+ */
1538
+ export interface DocumentHighlightClientCapabilities {
1539
+ /**
1540
+ * Whether document highlight supports dynamic registration.
1541
+ */
1542
+ dynamicRegistration?: boolean;
1543
+ }
1536
1544
  /**
1537
1545
  * Parameters for a [DocumentHighlightRequest](#DocumentHighlightRequest).
1538
1546
  */
1539
1547
  export interface DocumentHighlightParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
1540
1548
  }
1549
+ /**
1550
+ * Provider options for a [DocumentHighlightRequest](#DocumentHighlightRequest).
1551
+ */
1552
+ export interface DocumentHighlightOptions extends WorkDoneProgressOptions {
1553
+ }
1541
1554
  /**
1542
1555
  * Registration options for a [DocumentHighlightRequest](#DocumentHighlightRequest).
1543
1556
  */
@@ -1553,6 +1566,35 @@ export declare namespace DocumentHighlightRequest {
1553
1566
  const type: RequestType<DocumentHighlightParams, DocumentHighlight[] | null, void, DocumentHighlightRegistrationOptions>;
1554
1567
  const resultType: ProgressType<DocumentHighlight[]>;
1555
1568
  }
1569
+ /**
1570
+ * Client Capabilities for a [DocumentSymbolRequest](#DocumentSymbolRequest).
1571
+ */
1572
+ export interface DocumentSymbolClientCapabilities {
1573
+ /**
1574
+ * Whether document symbol supports dynamic registration.
1575
+ */
1576
+ dynamicRegistration?: boolean;
1577
+ /**
1578
+ * Specific capabilities for the `SymbolKind`.
1579
+ */
1580
+ symbolKind?: {
1581
+ /**
1582
+ * The symbol kind values the client supports. When this
1583
+ * property exists the client also guarantees that it will
1584
+ * handle values outside its set gracefully and falls back
1585
+ * to a default value when unknown.
1586
+ *
1587
+ * If this property is not present the client only supports
1588
+ * the symbol kinds from `File` to `Array` as defined in
1589
+ * the initial version of the protocol.
1590
+ */
1591
+ valueSet?: SymbolKind[];
1592
+ };
1593
+ /**
1594
+ * The client support hierarchical document symbols.
1595
+ */
1596
+ hierarchicalDocumentSymbolSupport?: boolean;
1597
+ }
1556
1598
  /**
1557
1599
  * Parameters for a [DocumentSymbolRequest](#DocumentSymbolRequest).
1558
1600
  */
@@ -1562,6 +1604,11 @@ export interface DocumentSymbolParams extends WorkDoneProgressParams, PartialRes
1562
1604
  */
1563
1605
  textDocument: TextDocumentIdentifier;
1564
1606
  }
1607
+ /**
1608
+ * Provider options for a [DocumentSymbolRequest](#DocumentSymbolRequest).
1609
+ */
1610
+ export interface DocumentSymbolOptions extends WorkDoneProgressOptions {
1611
+ }
1565
1612
  /**
1566
1613
  * Registration options for a [DocumentSymbolRequest](#DocumentSymbolRequest).
1567
1614
  */
@@ -1574,32 +1621,43 @@ export interface DocumentSymbolRegistrationOptions extends TextDocumentRegistrat
1574
1621
  * that resolves to such.
1575
1622
  */
1576
1623
  export declare namespace DocumentSymbolRequest {
1577
- const type: RequestType<DocumentSymbolParams, DocumentSymbol[] | SymbolInformation[] | null, void, DocumentSymbolRegistrationOptions>;
1578
- const resultType: ProgressType<DocumentSymbol[] | SymbolInformation[]>;
1624
+ const type: RequestType<DocumentSymbolParams, SymbolInformation[] | DocumentSymbol[] | null, void, DocumentSymbolRegistrationOptions>;
1625
+ const resultType: ProgressType<SymbolInformation[] | DocumentSymbol[]>;
1579
1626
  }
1580
1627
  /**
1581
- * The parameters of a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
1628
+ * The Client Capabilities of a [CodeActionRequest](#CodeActionRequest).
1582
1629
  */
1583
- export interface WorkspaceSymbolParams extends WorkDoneProgressParams, PartialResultParams {
1630
+ export interface CodeActionClientCapabilities {
1584
1631
  /**
1585
- * A non-empty query string
1632
+ * Whether code action supports dynamic registration.
1586
1633
  */
1587
- query: string;
1588
- }
1589
- /**
1590
- * Registration options for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
1591
- */
1592
- export interface WorkspaceSymbolRegistrationOptions extends WorkspaceSymbolOptions {
1593
- }
1594
- /**
1595
- * A request to list project-wide symbols matching the query string given
1596
- * by the [WorkspaceSymbolParams](#WorkspaceSymbolParams). The response is
1597
- * of type [SymbolInformation[]](#SymbolInformation) or a Thenable that
1598
- * resolves to such.
1599
- */
1600
- export declare namespace WorkspaceSymbolRequest {
1601
- const type: RequestType<WorkspaceSymbolParams, SymbolInformation[] | null, void, WorkspaceSymbolRegistrationOptions>;
1602
- const resultType: ProgressType<SymbolInformation[]>;
1634
+ dynamicRegistration?: boolean;
1635
+ /**
1636
+ * The client support code action literals as a valid
1637
+ * response of the `textDocument/codeAction` request.
1638
+ *
1639
+ * @since 3.8.0
1640
+ */
1641
+ codeActionLiteralSupport?: {
1642
+ /**
1643
+ * The code action kind is support with the following value
1644
+ * set.
1645
+ */
1646
+ codeActionKind: {
1647
+ /**
1648
+ * The code action kind values the client supports. When this
1649
+ * property exists the client also guarantees that it will
1650
+ * handle values outside its set gracefully and falls back
1651
+ * to a default value when unknown.
1652
+ */
1653
+ valueSet: CodeActionKind[];
1654
+ };
1655
+ };
1656
+ /**
1657
+ * Whether code action supports the `isPreferred` property.
1658
+ * @since 3.15.0
1659
+ */
1660
+ isPreferredSupport?: boolean;
1603
1661
  }
1604
1662
  /**
1605
1663
  * The parameters of a [CodeActionRequest](#CodeActionRequest).
@@ -1618,6 +1676,18 @@ export interface CodeActionParams extends WorkDoneProgressParams, PartialResultP
1618
1676
  */
1619
1677
  context: CodeActionContext;
1620
1678
  }
1679
+ /**
1680
+ * Provider options for a [CodeActionRequest](#CodeActionRequest).
1681
+ */
1682
+ export interface CodeActionOptions extends WorkDoneProgressOptions {
1683
+ /**
1684
+ * CodeActionKinds that this server may return.
1685
+ *
1686
+ * The list of kinds may be generic, such as `CodeActionKind.Refactor`, or the server
1687
+ * may list out every specific kind they provide.
1688
+ */
1689
+ codeActionKinds?: CodeActionKind[];
1690
+ }
1621
1691
  /**
1622
1692
  * Registration options for a [CodeActionRequest](#CodeActionRequest).
1623
1693
  */
@@ -1630,6 +1700,70 @@ export declare namespace CodeActionRequest {
1630
1700
  const type: RequestType<CodeActionParams, (Command | CodeAction)[] | null, void, CodeActionRegistrationOptions>;
1631
1701
  const resultType: ProgressType<(Command | CodeAction)[]>;
1632
1702
  }
1703
+ /**
1704
+ * Client capabilities for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
1705
+ */
1706
+ export interface WorkspaceSymbolClientCapabilities {
1707
+ /**
1708
+ * Symbol request supports dynamic registration.
1709
+ */
1710
+ dynamicRegistration?: boolean;
1711
+ /**
1712
+ * Specific capabilities for the `SymbolKind` in the `workspace/symbol` request.
1713
+ */
1714
+ symbolKind?: {
1715
+ /**
1716
+ * The symbol kind values the client supports. When this
1717
+ * property exists the client also guarantees that it will
1718
+ * handle values outside its set gracefully and falls back
1719
+ * to a default value when unknown.
1720
+ *
1721
+ * If this property is not present the client only supports
1722
+ * the symbol kinds from `File` to `Array` as defined in
1723
+ * the initial version of the protocol.
1724
+ */
1725
+ valueSet?: SymbolKind[];
1726
+ };
1727
+ }
1728
+ /**
1729
+ * The parameters of a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
1730
+ */
1731
+ export interface WorkspaceSymbolParams extends WorkDoneProgressParams, PartialResultParams {
1732
+ /**
1733
+ * A query string to filter symbols by. Clients may send an empty
1734
+ * string here to request all symbols.
1735
+ */
1736
+ query: string;
1737
+ }
1738
+ /**
1739
+ * Server capabilities for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
1740
+ */
1741
+ export interface WorkspaceSymbolOptions extends WorkDoneProgressOptions {
1742
+ }
1743
+ /**
1744
+ * Registration options for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
1745
+ */
1746
+ export interface WorkspaceSymbolRegistrationOptions extends WorkspaceSymbolOptions {
1747
+ }
1748
+ /**
1749
+ * A request to list project-wide symbols matching the query string given
1750
+ * by the [WorkspaceSymbolParams](#WorkspaceSymbolParams). The response is
1751
+ * of type [SymbolInformation[]](#SymbolInformation) or a Thenable that
1752
+ * resolves to such.
1753
+ */
1754
+ export declare namespace WorkspaceSymbolRequest {
1755
+ const type: RequestType<WorkspaceSymbolParams, SymbolInformation[] | null, void, WorkspaceSymbolRegistrationOptions>;
1756
+ const resultType: ProgressType<SymbolInformation[]>;
1757
+ }
1758
+ /**
1759
+ * The client capabilities of a [CodeLensRequest](#CodeLensRequest).
1760
+ */
1761
+ export interface CodeLensClientCapabilities {
1762
+ /**
1763
+ * Whether code lens supports dynamic registration.
1764
+ */
1765
+ dynamicRegistration?: boolean;
1766
+ }
1633
1767
  /**
1634
1768
  * The parameters of a [CodeLensRequest](#CodeLensRequest).
1635
1769
  */
@@ -1639,6 +1773,15 @@ export interface CodeLensParams extends WorkDoneProgressParams, PartialResultPar
1639
1773
  */
1640
1774
  textDocument: TextDocumentIdentifier;
1641
1775
  }
1776
+ /**
1777
+ * Code Lens provider options of a [CodeLensRequest](#CodeLensRequest).
1778
+ */
1779
+ export interface CodeLensOptions extends WorkDoneProgressOptions {
1780
+ /**
1781
+ * Code lens has a resolve provider as well.
1782
+ */
1783
+ resolveProvider?: boolean;
1784
+ }
1642
1785
  /**
1643
1786
  * Registration options for a [CodeLensRequest](#CodeLensRequest).
1644
1787
  */
@@ -1657,6 +1800,68 @@ export declare namespace CodeLensRequest {
1657
1800
  export declare namespace CodeLensResolveRequest {
1658
1801
  const type: RequestType<CodeLens, CodeLens, void, void>;
1659
1802
  }
1803
+ /**
1804
+ * The client capabilities of a [DocumentLinkRequest](#DocumentLinkRequest).
1805
+ */
1806
+ export interface DocumentLinkClientCapabilities {
1807
+ /**
1808
+ * Whether document link supports dynamic registration.
1809
+ */
1810
+ dynamicRegistration?: boolean;
1811
+ /**
1812
+ * Whether the client support the `tooltip` property on `DocumentLink`.
1813
+ *
1814
+ * @since 3.15.0
1815
+ */
1816
+ tooltipSupport?: boolean;
1817
+ }
1818
+ /**
1819
+ * The parameters of a [DocumentLinkRequest](#DocumentLinkRequest).
1820
+ */
1821
+ export interface DocumentLinkParams extends WorkDoneProgressParams, PartialResultParams {
1822
+ /**
1823
+ * The document to provide document links for.
1824
+ */
1825
+ textDocument: TextDocumentIdentifier;
1826
+ }
1827
+ /**
1828
+ * Provider options for a [DocumentLinkRequest](#DocumentLinkRequest).
1829
+ */
1830
+ export interface DocumentLinkOptions extends WorkDoneProgressOptions {
1831
+ /**
1832
+ * Document links have a resolve provider as well.
1833
+ */
1834
+ resolveProvider?: boolean;
1835
+ }
1836
+ /**
1837
+ * Registration options for a [DocumentLinkRequest](#DocumentLinkRequest).
1838
+ */
1839
+ export interface DocumentLinkRegistrationOptions extends TextDocumentRegistrationOptions, DocumentLinkOptions {
1840
+ }
1841
+ /**
1842
+ * A request to provide document links
1843
+ */
1844
+ export declare namespace DocumentLinkRequest {
1845
+ const type: RequestType<DocumentLinkParams, DocumentLink[] | null, void, DocumentLinkRegistrationOptions>;
1846
+ const resultType: ProgressType<DocumentLink[]>;
1847
+ }
1848
+ /**
1849
+ * Request to resolve additional information for a given document link. The request's
1850
+ * parameter is of type [DocumentLink](#DocumentLink) the response
1851
+ * is of type [DocumentLink](#DocumentLink) or a Thenable that resolves to such.
1852
+ */
1853
+ export declare namespace DocumentLinkResolveRequest {
1854
+ const type: RequestType<DocumentLink, DocumentLink, void, void>;
1855
+ }
1856
+ /**
1857
+ * Client capabilities of a [DocumentFormattingRequest](#DocumentFormattingRequest).
1858
+ */
1859
+ export interface DocumentFormattingClientCapabilities {
1860
+ /**
1861
+ * Whether formatting supports dynamic registration.
1862
+ */
1863
+ dynamicRegistration?: boolean;
1864
+ }
1660
1865
  /**
1661
1866
  * The parameters of a [DocumentFormattingRequest](#DocumentFormattingRequest).
1662
1867
  */
@@ -1670,6 +1875,11 @@ export interface DocumentFormattingParams extends WorkDoneProgressParams {
1670
1875
  */
1671
1876
  options: FormattingOptions;
1672
1877
  }
1878
+ /**
1879
+ * Provider options for a [DocumentFormattingRequest](#DocumentFormattingRequest).
1880
+ */
1881
+ export interface DocumentFormattingOptions extends WorkDoneProgressOptions {
1882
+ }
1673
1883
  /**
1674
1884
  * Registration options for a [DocumentFormattingRequest](#DocumentFormattingRequest).
1675
1885
  */
@@ -1681,6 +1891,15 @@ export interface DocumentFormattingRegistrationOptions extends TextDocumentRegis
1681
1891
  export declare namespace DocumentFormattingRequest {
1682
1892
  const type: RequestType<DocumentFormattingParams, TextEdit[] | null, void, DocumentFormattingRegistrationOptions>;
1683
1893
  }
1894
+ /**
1895
+ * Client capabilities of a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
1896
+ */
1897
+ export interface DocumentRangeFormattingClientCapabilities {
1898
+ /**
1899
+ * Whether range formatting supports dynamic registration.
1900
+ */
1901
+ dynamicRegistration?: boolean;
1902
+ }
1684
1903
  /**
1685
1904
  * The parameters of a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
1686
1905
  */
@@ -1698,6 +1917,11 @@ export interface DocumentRangeFormattingParams extends WorkDoneProgressParams {
1698
1917
  */
1699
1918
  options: FormattingOptions;
1700
1919
  }
1920
+ /**
1921
+ * Provider options for a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
1922
+ */
1923
+ export interface DocumentRangeFormattingOptions extends WorkDoneProgressOptions {
1924
+ }
1701
1925
  /**
1702
1926
  * Registration options for a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
1703
1927
  */
@@ -1709,6 +1933,15 @@ export interface DocumentRangeFormattingRegistrationOptions extends TextDocument
1709
1933
  export declare namespace DocumentRangeFormattingRequest {
1710
1934
  const type: RequestType<DocumentRangeFormattingParams, TextEdit[] | null, void, DocumentRangeFormattingRegistrationOptions>;
1711
1935
  }
1936
+ /**
1937
+ * Client capabilities of a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
1938
+ */
1939
+ export interface DocumentOnTypeFormattingClientCapabilities {
1940
+ /**
1941
+ * Whether on type formatting supports dynamic registration.
1942
+ */
1943
+ dynamicRegistration?: boolean;
1944
+ }
1712
1945
  /**
1713
1946
  * The parameters of a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
1714
1947
  */
@@ -1730,6 +1963,19 @@ export interface DocumentOnTypeFormattingParams {
1730
1963
  */
1731
1964
  options: FormattingOptions;
1732
1965
  }
1966
+ /**
1967
+ * Provider options for a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
1968
+ */
1969
+ export interface DocumentOnTypeFormattingOptions {
1970
+ /**
1971
+ * A character on which formatting should be triggered, like `}`.
1972
+ */
1973
+ firstTriggerCharacter: string;
1974
+ /**
1975
+ * More trigger characters.
1976
+ */
1977
+ moreTriggerCharacter?: string[];
1978
+ }
1733
1979
  /**
1734
1980
  * Registration options for a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
1735
1981
  */
@@ -1741,6 +1987,19 @@ export interface DocumentOnTypeFormattingRegistrationOptions extends TextDocumen
1741
1987
  export declare namespace DocumentOnTypeFormattingRequest {
1742
1988
  const type: RequestType<DocumentOnTypeFormattingParams, TextEdit[] | null, void, DocumentOnTypeFormattingRegistrationOptions>;
1743
1989
  }
1990
+ export interface RenameClientCapabilities {
1991
+ /**
1992
+ * Whether rename supports dynamic registration.
1993
+ */
1994
+ dynamicRegistration?: boolean;
1995
+ /**
1996
+ * Client supports testing for validity of rename operations
1997
+ * before execution.
1998
+ *
1999
+ * @since version 3.12.0
2000
+ */
2001
+ prepareSupport?: boolean;
2002
+ }
1744
2003
  /**
1745
2004
  * The parameters of a [RenameRequest](#RenameRequest).
1746
2005
  */
@@ -1760,6 +2019,17 @@ export interface RenameParams extends WorkDoneProgressParams {
1760
2019
  */
1761
2020
  newName: string;
1762
2021
  }
2022
+ /**
2023
+ * Provider options for a [RenameRequest](#RenameRequest).
2024
+ */
2025
+ export interface RenameOptions extends WorkDoneProgressOptions {
2026
+ /**
2027
+ * Renames should be checked and tested before being executed.
2028
+ *
2029
+ * @since version 3.12.0
2030
+ */
2031
+ prepareProvider?: boolean;
2032
+ }
1763
2033
  /**
1764
2034
  * Registration options for a [RenameRequest](#RenameRequest).
1765
2035
  */
@@ -1783,33 +2053,13 @@ export declare namespace PrepareRenameRequest {
1783
2053
  } | null, void, void>;
1784
2054
  }
1785
2055
  /**
1786
- * The parameters of a [DocumentLinkRequest](#DocumentLinkRequest).
2056
+ * The client capabilities of a [ExecuteCommandRequest](#ExecuteCommandRequest).
1787
2057
  */
1788
- export interface DocumentLinkParams extends WorkDoneProgressParams, PartialResultParams {
2058
+ export interface ExecuteCommandClientCapabilities {
1789
2059
  /**
1790
- * The document to provide document links for.
2060
+ * Execute command supports dynamic registration.
1791
2061
  */
1792
- textDocument: TextDocumentIdentifier;
1793
- }
1794
- /**
1795
- * Registration options for a [DocumentLinkRequest](#DocumentLinkRequest).
1796
- */
1797
- export interface DocumentLinkRegistrationOptions extends TextDocumentRegistrationOptions, DocumentLinkOptions {
1798
- }
1799
- /**
1800
- * A request to provide document links
1801
- */
1802
- export declare namespace DocumentLinkRequest {
1803
- const type: RequestType<DocumentLinkParams, DocumentLink[] | null, void, DocumentLinkRegistrationOptions>;
1804
- const resultType: ProgressType<DocumentLink[]>;
1805
- }
1806
- /**
1807
- * Request to resolve additional information for a given document link. The request's
1808
- * parameter is of type [DocumentLink](#DocumentLink) the response
1809
- * is of type [DocumentLink](#DocumentLink) or a Thenable that resolves to such.
1810
- */
1811
- export declare namespace DocumentLinkResolveRequest {
1812
- const type: RequestType<DocumentLink, DocumentLink, void, void>;
2062
+ dynamicRegistration?: boolean;
1813
2063
  }
1814
2064
  /**
1815
2065
  * The parameters of a [ExecuteCommandRequest](#ExecuteCommandRequest).
@@ -1824,6 +2074,15 @@ export interface ExecuteCommandParams extends WorkDoneProgressParams {
1824
2074
  */
1825
2075
  arguments?: any[];
1826
2076
  }
2077
+ /**
2078
+ * The server capabilities of a [ExecuteCommandRequest](#ExecuteCommandRequest).
2079
+ */
2080
+ export interface ExecuteCommandOptions extends WorkDoneProgressOptions {
2081
+ /**
2082
+ * The commands to be executed on the server
2083
+ */
2084
+ commands: string[];
2085
+ }
1827
2086
  /**
1828
2087
  * Registration options for a [ExecuteCommandRequest](#ExecuteCommandRequest).
1829
2088
  */
@@ -1836,6 +2095,26 @@ export interface ExecuteCommandRegistrationOptions extends ExecuteCommandOptions
1836
2095
  export declare namespace ExecuteCommandRequest {
1837
2096
  const type: RequestType<ExecuteCommandParams, any, void, ExecuteCommandRegistrationOptions>;
1838
2097
  }
2098
+ export interface WorkspaceEditClientCapabilities {
2099
+ /**
2100
+ * The client supports versioned document changes in `WorkspaceEdit`s
2101
+ */
2102
+ documentChanges?: boolean;
2103
+ /**
2104
+ * The resource operations the client supports. Clients should at least
2105
+ * support 'create', 'rename' and 'delete' files and folders.
2106
+ *
2107
+ * @since 3.13.0
2108
+ */
2109
+ resourceOperations?: ResourceOperationKind[];
2110
+ /**
2111
+ * The failure handling strategy of a client if applying the workspace edit
2112
+ * fails.
2113
+ *
2114
+ * @since 3.13.0
2115
+ */
2116
+ failureHandling?: FailureHandlingKind;
2117
+ }
1839
2118
  /**
1840
2119
  * The parameters passed via a apply workspace edit request.
1841
2120
  */
@@ -1878,5 +2157,5 @@ export interface ApplyWorkspaceEditResponse {
1878
2157
  export declare namespace ApplyWorkspaceEditRequest {
1879
2158
  const type: RequestType<ApplyWorkspaceEditParams, ApplyWorkspaceEditResponse, void, void>;
1880
2159
  }
1881
- export { ImplementationRequest, TypeDefinitionRequest, WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, ConfigurationRequest, ConfigurationParams, ConfigurationItem, DocumentColorRequest, ColorPresentationRequest, ColorOptions, DocumentColorParams, ColorPresentationParams, FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeServerCapabilities, DeclarationClientCapabilities, DeclarationRequest, DeclarationServerCapabilities, SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeServerCapabilities, SelectionRangeParams, SelectionRangeRequest };
1882
- export { ColorOptions as ColorProviderOptions, FoldingRangeOptions as FoldingRangeProviderOptions, SelectionRangeOptions as SelectionRangeProviderOptions };
2160
+ export { ImplementationRequest, TypeDefinitionRequest, WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, ConfigurationRequest, ConfigurationParams, ConfigurationItem, DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, DeclarationClientCapabilities, DeclarationRequest, SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeParams, SelectionRangeRequest };
2161
+ export { DocumentColorOptions as ColorProviderOptions, DocumentColorOptions as ColorOptions, FoldingRangeOptions as FoldingRangeProviderOptions, SelectionRangeOptions as SelectionRangeProviderOptions, DocumentColorRegistrationOptions as ColorRegistrationOptions };