/
tsprotocol.go
4054 lines (3328 loc) · 112 KB
/
tsprotocol.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Package protocol contains data types and code for LSP jsonrpcs
// generated automatically from vscode-languageserver-node
// commit: 8801c20b667945f455d7e023c71d2f741caeda25
// last fetched Sat Jul 13 2019 18:33:10 GMT-0700 (Pacific Daylight Time)
package protocol
// Code generated (see typescript/README.md) DO NOT EDIT.
// WorkspaceFolder is
type WorkspaceFolder struct {
/*URI defined:
* The associated URI for this workspace folder.
*/
URI string `json:"uri"`
/*Name defined:
* The name of the workspace folder. Used to refer to this
* workspace folder in thge user interface.
*/
Name string `json:"name"`
}
/*DidChangeWorkspaceFoldersParams defined:
* The parameters of a `workspace/didChangeWorkspaceFolders` notification.
*/
type DidChangeWorkspaceFoldersParams struct {
/*Event defined:
* The actual workspace folder change event.
*/
Event WorkspaceFoldersChangeEvent `json:"event"`
}
/*WorkspaceFoldersChangeEvent defined:
* The workspace folder change event.
*/
type WorkspaceFoldersChangeEvent struct {
/*Added defined:
* The array of added workspace folders
*/
Added []WorkspaceFolder `json:"added"`
/*Removed defined:
* The array of the removed workspace folders
*/
Removed []WorkspaceFolder `json:"removed"`
}
// ConfigurationItem is
type ConfigurationItem struct {
/*ScopeURI defined:
* The scope to get the configuration section for.
*/
ScopeURI string `json:"scopeUri,omitempty"`
/*Section defined:
* The configuration section asked for.
*/
Section string `json:"section,omitempty"`
}
/*ConfigurationParams defined:
* The parameters of a configuration request.
*/
type ConfigurationParams struct {
// Items is
Items []ConfigurationItem `json:"items"`
}
// ColorProviderOptions is
type ColorProviderOptions struct {
}
/*DocumentColorParams defined:
* Parameters for a [DocumentColorRequest](#DocumentColorRequest).
*/
type DocumentColorParams struct {
/*TextDocument defined:
* The text document.
*/
TextDocument TextDocumentIdentifier `json:"textDocument"`
}
/*ColorPresentationParams defined:
* Parameters for a [ColorPresentationRequest](#ColorPresentationRequest).
*/
type ColorPresentationParams struct {
/*TextDocument defined:
* The text document.
*/
TextDocument TextDocumentIdentifier `json:"textDocument"`
/*Color defined:
* The color to request presentations for.
*/
Color Color `json:"color"`
/*Range defined:
* The range where the color would be inserted. Serves as a context.
*/
Range Range `json:"range"`
}
// FoldingRangeProviderOptions is
type FoldingRangeProviderOptions struct {
}
/*FoldingRange defined:
* Represents a folding range.
*/
type FoldingRange struct {
/*StartLine defined:
* The zero-based line number from where the folded range starts.
*/
StartLine float64 `json:"startLine"`
/*StartCharacter defined:
* The zero-based character offset from where the folded range starts. If not defined, defaults to the length of the start line.
*/
StartCharacter float64 `json:"startCharacter,omitempty"`
/*EndLine defined:
* The zero-based line number where the folded range ends.
*/
EndLine float64 `json:"endLine"`
/*EndCharacter defined:
* The zero-based character offset before the folded range ends. If not defined, defaults to the length of the end line.
*/
EndCharacter float64 `json:"endCharacter,omitempty"`
/*Kind defined:
* Describes the kind of the folding range such as `comment' or 'region'. The kind
* is used to categorize folding ranges and used by commands like 'Fold all comments'. See
* [FoldingRangeKind](#FoldingRangeKind) for an enumeration of standardized kinds.
*/
Kind string `json:"kind,omitempty"`
}
/*FoldingRangeParams defined:
* Parameters for a [FoldingRangeRequest](#FoldingRangeRequest).
*/
type FoldingRangeParams struct {
/*TextDocument defined:
* The text document.
*/
TextDocument TextDocumentIdentifier `json:"textDocument"`
}
// SelectionRangeProviderOptions is
type SelectionRangeProviderOptions struct {
}
/*SelectionRangeParams defined:
* A parameter literal used in selection range requests.
*/
type SelectionRangeParams struct {
/*TextDocument defined:
* The text document.
*/
TextDocument TextDocumentIdentifier `json:"textDocument"`
/*Positions defined:
* The positions inside the text document.
*/
Positions []Position `json:"positions"`
}
/*Registration defined:
* General parameters to to register for an notification or to register a provider.
*/
type Registration struct {
/*ID defined:
* The id used to register the request. The id can be used to deregister
* the request again.
*/
ID string `json:"id"`
/*Method defined:
* The method to register for.
*/
Method string `json:"method"`
/*RegisterOptions defined:
* Options necessary for the registration.
*/
RegisterOptions interface{} `json:"registerOptions,omitempty"`
}
// RegistrationParams is
type RegistrationParams struct {
// Registrations is
Registrations []Registration `json:"registrations"`
}
/*Unregistration defined:
* General parameters to unregister a request or notification.
*/
type Unregistration struct {
/*ID defined:
* The id used to unregister the request or notification. Usually an id
* provided during the register request.
*/
ID string `json:"id"`
/*Method defined:
* The method to unregister for.
*/
Method string `json:"method"`
}
// UnregistrationParams is
type UnregistrationParams struct {
// Unregisterations is
Unregisterations []Unregistration `json:"unregisterations"`
}
/*TextDocumentPositionParams defined:
* A parameter literal used in requests to pass a text document and a position inside that
* document.
*/
type TextDocumentPositionParams struct {
/*TextDocument defined:
* The text document.
*/
TextDocument TextDocumentIdentifier `json:"textDocument"`
/*Position defined:
* The position inside the text document.
*/
Position Position `json:"position"`
}
/*WorkspaceClientCapabilities defined:
* Workspace specific client capabilities.
*/
type WorkspaceClientCapabilities struct {
/*ApplyEdit defined:
* The client supports applying batch edits
* to the workspace by supporting the request
* 'workspace/applyEdit'
*/
ApplyEdit bool `json:"applyEdit,omitempty"`
/*WorkspaceEdit defined:
* Capabilities specific to `WorkspaceEdit`s
*/
WorkspaceEdit *struct {
/*DocumentChanges defined:
* The client supports versioned document changes in `WorkspaceEdit`s
*/
DocumentChanges bool `json:"documentChanges,omitempty"`
/*ResourceOperations defined:
* The resource operations the client supports. Clients should at least
* support 'create', 'rename' and 'delete' files and folders.
*/
ResourceOperations []ResourceOperationKind `json:"resourceOperations,omitempty"`
/*FailureHandling defined:
* The failure handling strategy of a client if applying the workspace edit
* failes.
*/
FailureHandling FailureHandlingKind `json:"failureHandling,omitempty"`
} `json:"workspaceEdit,omitempty"`
/*DidChangeConfiguration defined:
* Capabilities specific to the `workspace/didChangeConfiguration` notification.
*/
DidChangeConfiguration *struct {
/*DynamicRegistration defined:
* Did change configuration notification supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"didChangeConfiguration,omitempty"`
/*DidChangeWatchedFiles defined:
* Capabilities specific to the `workspace/didChangeWatchedFiles` notification.
*/
DidChangeWatchedFiles *struct {
/*DynamicRegistration defined:
* Did change watched files notification supports dynamic registration. Please note
* that the current protocol doesn't support static configuration for file changes
* from the server side.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"didChangeWatchedFiles,omitempty"`
/*Symbol defined:
* Capabilities specific to the `workspace/symbol` request.
*/
Symbol *struct {
/*DynamicRegistration defined:
* Symbol request supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*SymbolKind defined:
* Specific capabilities for the `SymbolKind` in the `workspace/symbol` request.
*/
SymbolKind *struct {
/*ValueSet defined:
* The symbol kind values the client supports. When this
* property exists the client also guarantees that it will
* handle values outside its set gracefully and falls back
* to a default value when unknown.
*
* If this property is not present the client only supports
* the symbol kinds from `File` to `Array` as defined in
* the initial version of the protocol.
*/
ValueSet []SymbolKind `json:"valueSet,omitempty"`
} `json:"symbolKind,omitempty"`
} `json:"symbol,omitempty"`
/*ExecuteCommand defined:
* Capabilities specific to the `workspace/executeCommand` request.
*/
ExecuteCommand *struct {
/*DynamicRegistration defined:
* Execute command supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"executeCommand,omitempty"`
}
/*TextDocumentClientCapabilities defined:
* Text document specific client capabilities.
*/
type TextDocumentClientCapabilities struct {
/*Synchronization defined:
* Defines which synchronization capabilities the client supports.
*/
Synchronization *struct {
/*DynamicRegistration defined:
* Whether text document synchronization supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*WillSave defined:
* The client supports sending will save notifications.
*/
WillSave bool `json:"willSave,omitempty"`
/*WillSaveWaitUntil defined:
* The client supports sending a will save request and
* waits for a response providing text edits which will
* be applied to the document before it is saved.
*/
WillSaveWaitUntil bool `json:"willSaveWaitUntil,omitempty"`
/*DidSave defined:
* The client supports did save notifications.
*/
DidSave bool `json:"didSave,omitempty"`
} `json:"synchronization,omitempty"`
/*Completion defined:
* Capabilities specific to the `textDocument/completion`
*/
Completion *struct {
/*DynamicRegistration defined:
* Whether completion supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*CompletionItem defined:
* The client supports the following `CompletionItem` specific
* capabilities.
*/
CompletionItem *struct {
/*SnippetSupport defined:
* Client supports snippets as insert text.
*
* A snippet can define tab stops and placeholders with `$1`, `$2`
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to
* the end of the snippet. Placeholders with equal identifiers are linked,
* that is typing in one will update others too.
*/
SnippetSupport bool `json:"snippetSupport,omitempty"`
/*CommitCharactersSupport defined:
* Client supports commit characters on a completion item.
*/
CommitCharactersSupport bool `json:"commitCharactersSupport,omitempty"`
/*DocumentationFormat defined:
* Client supports the follow content formats for the documentation
* property. The order describes the preferred format of the client.
*/
DocumentationFormat []MarkupKind `json:"documentationFormat,omitempty"`
/*DeprecatedSupport defined:
* Client supports the deprecated property on a completion item.
*/
DeprecatedSupport bool `json:"deprecatedSupport,omitempty"`
/*PreselectSupport defined:
* Client supports the preselect property on a completion item.
*/
PreselectSupport bool `json:"preselectSupport,omitempty"`
} `json:"completionItem,omitempty"`
// CompletionItemKind is
CompletionItemKind *struct {
/*ValueSet defined:
* The completion item kind values the client supports. When this
* property exists the client also guarantees that it will
* handle values outside its set gracefully and falls back
* to a default value when unknown.
*
* If this property is not present the client only supports
* the completion items kinds from `Text` to `Reference` as defined in
* the initial version of the protocol.
*/
ValueSet []CompletionItemKind `json:"valueSet,omitempty"`
} `json:"completionItemKind,omitempty"`
/*ContextSupport defined:
* The client supports to send additional context information for a
* `textDocument/completion` requestion.
*/
ContextSupport bool `json:"contextSupport,omitempty"`
} `json:"completion,omitempty"`
/*Hover defined:
* Capabilities specific to the `textDocument/hover`
*/
Hover *struct {
/*DynamicRegistration defined:
* Whether hover supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*ContentFormat defined:
* Client supports the follow content formats for the content
* property. The order describes the preferred format of the client.
*/
ContentFormat []MarkupKind `json:"contentFormat,omitempty"`
} `json:"hover,omitempty"`
/*SignatureHelp defined:
* Capabilities specific to the `textDocument/signatureHelp`
*/
SignatureHelp *struct {
/*DynamicRegistration defined:
* Whether signature help supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*SignatureInformation defined:
* The client supports the following `SignatureInformation`
* specific properties.
*/
SignatureInformation *struct {
/*DocumentationFormat defined:
* Client supports the follow content formats for the documentation
* property. The order describes the preferred format of the client.
*/
DocumentationFormat []MarkupKind `json:"documentationFormat,omitempty"`
/*ParameterInformation defined:
* Client capabilities specific to parameter information.
*/
ParameterInformation *struct {
/*LabelOffsetSupport defined:
* The client supports processing label offsets instead of a
* simple label string.
*/
LabelOffsetSupport bool `json:"labelOffsetSupport,omitempty"`
} `json:"parameterInformation,omitempty"`
} `json:"signatureInformation,omitempty"`
} `json:"signatureHelp,omitempty"`
/*References defined:
* Capabilities specific to the `textDocument/references`
*/
References *struct {
/*DynamicRegistration defined:
* Whether references supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"references,omitempty"`
/*DocumentHighlight defined:
* Capabilities specific to the `textDocument/documentHighlight`
*/
DocumentHighlight *struct {
/*DynamicRegistration defined:
* Whether document highlight supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"documentHighlight,omitempty"`
/*DocumentSymbol defined:
* Capabilities specific to the `textDocument/documentSymbol`
*/
DocumentSymbol *struct {
/*DynamicRegistration defined:
* Whether document symbol supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*SymbolKind defined:
* Specific capabilities for the `SymbolKind`.
*/
SymbolKind *struct {
/*ValueSet defined:
* The symbol kind values the client supports. When this
* property exists the client also guarantees that it will
* handle values outside its set gracefully and falls back
* to a default value when unknown.
*
* If this property is not present the client only supports
* the symbol kinds from `File` to `Array` as defined in
* the initial version of the protocol.
*/
ValueSet []SymbolKind `json:"valueSet,omitempty"`
} `json:"symbolKind,omitempty"`
/*HierarchicalDocumentSymbolSupport defined:
* The client support hierarchical document symbols.
*/
HierarchicalDocumentSymbolSupport bool `json:"hierarchicalDocumentSymbolSupport,omitempty"`
} `json:"documentSymbol,omitempty"`
/*Formatting defined:
* Capabilities specific to the `textDocument/formatting`
*/
Formatting *struct {
/*DynamicRegistration defined:
* Whether formatting supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"formatting,omitempty"`
/*RangeFormatting defined:
* Capabilities specific to the `textDocument/rangeFormatting`
*/
RangeFormatting *struct {
/*DynamicRegistration defined:
* Whether range formatting supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"rangeFormatting,omitempty"`
/*OnTypeFormatting defined:
* Capabilities specific to the `textDocument/onTypeFormatting`
*/
OnTypeFormatting *struct {
/*DynamicRegistration defined:
* Whether on type formatting supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"onTypeFormatting,omitempty"`
/*Definition defined:
* Capabilities specific to the `textDocument/definition`
*/
Definition *struct {
/*DynamicRegistration defined:
* Whether definition supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*LinkSupport defined:
* The client supports additional metadata in the form of definition links.
*/
LinkSupport bool `json:"linkSupport,omitempty"`
} `json:"definition,omitempty"`
/*CodeAction defined:
* Capabilities specific to the `textDocument/codeAction`
*/
CodeAction *struct {
/*DynamicRegistration defined:
* Whether code action supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*CodeActionLiteralSupport defined:
* The client support code action literals as a valid
* response of the `textDocument/codeAction` request.
*/
CodeActionLiteralSupport *struct {
/*CodeActionKind defined:
* The code action kind is support with the following value
* set.
*/
CodeActionKind struct {
/*ValueSet defined:
* The code action kind values the client supports. When this
* property exists the client also guarantees that it will
* handle values outside its set gracefully and falls back
* to a default value when unknown.
*/
ValueSet []CodeActionKind `json:"valueSet"`
} `json:"codeActionKind"`
} `json:"codeActionLiteralSupport,omitempty"`
} `json:"codeAction,omitempty"`
/*CodeLens defined:
* Capabilities specific to the `textDocument/codeLens`
*/
CodeLens *struct {
/*DynamicRegistration defined:
* Whether code lens supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"codeLens,omitempty"`
/*DocumentLink defined:
* Capabilities specific to the `textDocument/documentLink`
*/
DocumentLink *struct {
/*DynamicRegistration defined:
* Whether document link supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"documentLink,omitempty"`
/*Rename defined:
* Capabilities specific to the `textDocument/rename`
*/
Rename *struct {
/*DynamicRegistration defined:
* Whether rename supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*PrepareSupport defined:
* Client supports testing for validity of rename operations
* before execution.
*/
PrepareSupport bool `json:"prepareSupport,omitempty"`
} `json:"rename,omitempty"`
/*PublishDiagnostics defined:
* Capabilities specific to `textDocument/publishDiagnostics`.
*/
PublishDiagnostics *struct {
/*RelatedInformation defined:
* Whether the clients accepts diagnostics with related information.
*/
RelatedInformation bool `json:"relatedInformation,omitempty"`
/*TagSupport defined:
* Client supports the tag property to provide meta data about a diagnostic.
*/
TagSupport bool `json:"tagSupport,omitempty"`
} `json:"publishDiagnostics,omitempty"`
}
/*WindowClientCapabilities defined:
* Window specific client capabilities.
*/
type WindowClientCapabilities struct {
/*Progress defined:
* Whether client supports handling progress notifications.
*/
Progress bool `json:"progress,omitempty"`
}
// ClientCapabilities is
type ClientCapabilities struct {
/*Workspace defined:
* Workspace specific client capabilities.
*/
Workspace struct {
/*ApplyEdit defined:
* The client supports applying batch edits
* to the workspace by supporting the request
* 'workspace/applyEdit'
*/
ApplyEdit bool `json:"applyEdit,omitempty"`
/*WorkspaceEdit defined:
* Capabilities specific to `WorkspaceEdit`s
*/
WorkspaceEdit struct {
/*DocumentChanges defined:
* The client supports versioned document changes in `WorkspaceEdit`s
*/
DocumentChanges bool `json:"documentChanges,omitempty"`
/*ResourceOperations defined:
* The resource operations the client supports. Clients should at least
* support 'create', 'rename' and 'delete' files and folders.
*/
ResourceOperations []ResourceOperationKind `json:"resourceOperations,omitempty"`
/*FailureHandling defined:
* The failure handling strategy of a client if applying the workspace edit
* failes.
*/
FailureHandling FailureHandlingKind `json:"failureHandling,omitempty"`
} `json:"workspaceEdit,omitempty"`
/*DidChangeConfiguration defined:
* Capabilities specific to the `workspace/didChangeConfiguration` notification.
*/
DidChangeConfiguration struct {
/*DynamicRegistration defined:
* Did change configuration notification supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"didChangeConfiguration,omitempty"`
/*DidChangeWatchedFiles defined:
* Capabilities specific to the `workspace/didChangeWatchedFiles` notification.
*/
DidChangeWatchedFiles struct {
/*DynamicRegistration defined:
* Did change watched files notification supports dynamic registration. Please note
* that the current protocol doesn't support static configuration for file changes
* from the server side.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"didChangeWatchedFiles,omitempty"`
/*Symbol defined:
* Capabilities specific to the `workspace/symbol` request.
*/
Symbol struct {
/*DynamicRegistration defined:
* Symbol request supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*SymbolKind defined:
* Specific capabilities for the `SymbolKind` in the `workspace/symbol` request.
*/
SymbolKind struct {
/*ValueSet defined:
* The symbol kind values the client supports. When this
* property exists the client also guarantees that it will
* handle values outside its set gracefully and falls back
* to a default value when unknown.
*
* If this property is not present the client only supports
* the symbol kinds from `File` to `Array` as defined in
* the initial version of the protocol.
*/
ValueSet []SymbolKind `json:"valueSet,omitempty"`
} `json:"symbolKind,omitempty"`
} `json:"symbol,omitempty"`
/*ExecuteCommand defined:
* Capabilities specific to the `workspace/executeCommand` request.
*/
ExecuteCommand struct {
/*DynamicRegistration defined:
* Execute command supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"executeCommand,omitempty"`
/*WorkspaceFolders defined:
* The client has support for workspace folders
*/
WorkspaceFolders bool `json:"workspaceFolders,omitempty"`
/*Configuration defined:
* The client supports `workspace/configuration` requests.
*/
Configuration bool `json:"configuration,omitempty"`
} `json:"workspace,omitempty"`
/*TextDocument defined:
* Text document specific client capabilities.
*/
TextDocument struct {
/*Synchronization defined:
* Defines which synchronization capabilities the client supports.
*/
Synchronization struct {
/*DynamicRegistration defined:
* Whether text document synchronization supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*WillSave defined:
* The client supports sending will save notifications.
*/
WillSave bool `json:"willSave,omitempty"`
/*WillSaveWaitUntil defined:
* The client supports sending a will save request and
* waits for a response providing text edits which will
* be applied to the document before it is saved.
*/
WillSaveWaitUntil bool `json:"willSaveWaitUntil,omitempty"`
/*DidSave defined:
* The client supports did save notifications.
*/
DidSave bool `json:"didSave,omitempty"`
} `json:"synchronization,omitempty"`
/*Completion defined:
* Capabilities specific to the `textDocument/completion`
*/
Completion struct {
/*DynamicRegistration defined:
* Whether completion supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*CompletionItem defined:
* The client supports the following `CompletionItem` specific
* capabilities.
*/
CompletionItem struct {
/*SnippetSupport defined:
* Client supports snippets as insert text.
*
* A snippet can define tab stops and placeholders with `$1`, `$2`
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to
* the end of the snippet. Placeholders with equal identifiers are linked,
* that is typing in one will update others too.
*/
SnippetSupport bool `json:"snippetSupport,omitempty"`
/*CommitCharactersSupport defined:
* Client supports commit characters on a completion item.
*/
CommitCharactersSupport bool `json:"commitCharactersSupport,omitempty"`
/*DocumentationFormat defined:
* Client supports the follow content formats for the documentation
* property. The order describes the preferred format of the client.
*/
DocumentationFormat []MarkupKind `json:"documentationFormat,omitempty"`
/*DeprecatedSupport defined:
* Client supports the deprecated property on a completion item.
*/
DeprecatedSupport bool `json:"deprecatedSupport,omitempty"`
/*PreselectSupport defined:
* Client supports the preselect property on a completion item.
*/
PreselectSupport bool `json:"preselectSupport,omitempty"`
} `json:"completionItem,omitempty"`
// CompletionItemKind is
CompletionItemKind struct {
/*ValueSet defined:
* The completion item kind values the client supports. When this
* property exists the client also guarantees that it will
* handle values outside its set gracefully and falls back
* to a default value when unknown.
*
* If this property is not present the client only supports
* the completion items kinds from `Text` to `Reference` as defined in
* the initial version of the protocol.
*/
ValueSet []CompletionItemKind `json:"valueSet,omitempty"`
} `json:"completionItemKind,omitempty"`
/*ContextSupport defined:
* The client supports to send additional context information for a
* `textDocument/completion` requestion.
*/
ContextSupport bool `json:"contextSupport,omitempty"`
} `json:"completion,omitempty"`
/*Hover defined:
* Capabilities specific to the `textDocument/hover`
*/
Hover struct {
/*DynamicRegistration defined:
* Whether hover supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*ContentFormat defined:
* Client supports the follow content formats for the content
* property. The order describes the preferred format of the client.
*/
ContentFormat []MarkupKind `json:"contentFormat,omitempty"`
} `json:"hover,omitempty"`
/*SignatureHelp defined:
* Capabilities specific to the `textDocument/signatureHelp`
*/
SignatureHelp struct {
/*DynamicRegistration defined:
* Whether signature help supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
/*SignatureInformation defined:
* The client supports the following `SignatureInformation`
* specific properties.
*/
SignatureInformation struct {
/*DocumentationFormat defined:
* Client supports the follow content formats for the documentation
* property. The order describes the preferred format of the client.
*/
DocumentationFormat []MarkupKind `json:"documentationFormat,omitempty"`
/*ParameterInformation defined:
* Client capabilities specific to parameter information.
*/
ParameterInformation struct {
/*LabelOffsetSupport defined:
* The client supports processing label offsets instead of a
* simple label string.
*/
LabelOffsetSupport bool `json:"labelOffsetSupport,omitempty"`
} `json:"parameterInformation,omitempty"`
} `json:"signatureInformation,omitempty"`
} `json:"signatureHelp,omitempty"`
/*References defined:
* Capabilities specific to the `textDocument/references`
*/
References struct {
/*DynamicRegistration defined:
* Whether references supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"references,omitempty"`
/*DocumentHighlight defined:
* Capabilities specific to the `textDocument/documentHighlight`
*/
DocumentHighlight struct {
/*DynamicRegistration defined:
* Whether document highlight supports dynamic registration.
*/
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
} `json:"documentHighlight,omitempty"`