@@ -8,119 +8,74 @@ public class TextDocumentClientCapabilities
8
8
{
9
9
public Supports < SynchronizationCapability > Synchronization { get ; set ; }
10
10
11
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
12
- public bool ShouldSerializeSynchronization ( ) => Synchronization . IsSupported ;
13
-
14
11
/// <summary>
15
12
/// Capabilities specific to the `textDocument/completion`
16
13
/// </summary>
17
14
public Supports < CompletionCapability > Completion { get ; set ; }
18
15
19
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
20
- public bool ShouldSerializeCompletion ( ) => Completion . IsSupported ;
21
-
22
16
/// <summary>
23
17
/// Capabilities specific to the `textDocument/hover`
24
18
/// </summary>
25
19
public Supports < HoverCapability > Hover { get ; set ; }
26
20
27
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
28
- public bool ShouldSerializeHover ( ) => Hover . IsSupported ;
29
-
30
21
/// <summary>
31
22
/// Capabilities specific to the `textDocument/signatureHelp`
32
23
/// </summary>
33
24
public Supports < SignatureHelpCapability > SignatureHelp { get ; set ; }
34
25
35
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
36
- public bool ShouldSerializeSignatureHelp ( ) => SignatureHelp . IsSupported ;
37
-
38
26
/// <summary>
39
27
/// Capabilities specific to the `textDocument/references`
40
28
/// </summary>
41
29
public Supports < ReferencesCapability > References { get ; set ; }
42
30
43
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
44
- public bool ShouldSerializeReferences ( ) => References . IsSupported ;
45
-
46
31
/// <summary>
47
32
/// Capabilities specific to the `textDocument/documentHighlight`
48
33
/// </summary>
49
34
public Supports < DocumentHighlightCapability > DocumentHighlight { get ; set ; }
50
35
51
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
52
- public bool ShouldSerializeDocumentHighlight ( ) => DocumentHighlight . IsSupported ;
53
-
54
36
/// <summary>
55
37
/// Capabilities specific to the `textDocument/documentSymbol`
56
38
/// </summary>
57
39
public Supports < DocumentSymbolCapability > DocumentSymbol { get ; set ; }
58
40
59
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
60
- public bool ShouldSerializeDocumentSymbol ( ) => DocumentSymbol . IsSupported ;
61
-
62
41
/// <summary>
63
42
/// Capabilities specific to the `textDocument/formatting`
64
43
/// </summary>
65
44
public Supports < DocumentFormattingCapability > Formatting { get ; set ; }
66
45
67
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
68
- public bool ShouldSerializeFormatting ( ) => Formatting . IsSupported ;
69
-
70
46
/// <summary>
71
47
/// Capabilities specific to the `textDocument/rangeFormatting`
72
48
/// </summary>
73
49
public Supports < DocumentRangeFormattingCapability > RangeFormatting { get ; set ; }
74
50
75
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
76
- public bool ShouldSerializeRangeFormatting ( ) => RangeFormatting . IsSupported ;
77
-
78
51
/// <summary>
79
52
/// Capabilities specific to the `textDocument/onTypeFormatting`
80
53
/// </summary>
81
54
public Supports < DocumentOnTypeFormattingCapability > OnTypeFormatting { get ; set ; }
82
55
83
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
84
- public bool ShouldSerializeOnTypeFormatting ( ) => OnTypeFormatting . IsSupported ;
85
-
86
56
/// <summary>
87
57
/// Capabilities specific to the `textDocument/definition`
88
58
/// </summary>
89
59
public Supports < DefinitionCapability > Definition { get ; set ; }
90
60
91
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
92
- public bool ShouldSerializeDefinition ( ) => Definition . IsSupported ;
93
-
94
61
/// <summary>
95
62
/// Capabilities specific to the `textDocument/codeAction`
96
63
/// </summary>
97
64
public Supports < CodeActionCapability > CodeAction { get ; set ; }
98
65
99
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
100
- public bool ShouldSerializeCodeAction ( ) => CodeAction . IsSupported ;
101
-
102
66
/// <summary>
103
67
/// Capabilities specific to the `textDocument/codeLens`
104
68
/// </summary>
105
69
public Supports < CodeLensCapability > CodeLens { get ; set ; }
106
70
107
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
108
- public bool ShouldSerializeCodeLens ( ) => CodeLens . IsSupported ;
109
-
110
71
/// <summary>
111
72
/// Capabilities specific to the `textDocument/documentLink`
112
73
/// </summary>
113
74
public Supports < DocumentLinkCapability > DocumentLink { get ; set ; }
114
75
115
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
116
- public bool ShouldSerializeDocumentLink ( ) => DocumentLink . IsSupported ;
117
-
118
76
/// <summary>
119
77
/// Capabilities specific to the `textDocument/rename`
120
78
/// </summary>
121
79
public Supports < RenameCapability > Rename { get ; set ; }
122
-
123
- [ EditorBrowsable ( EditorBrowsableState . Never ) ]
124
- public bool ShouldSerializeRename ( ) => Rename . IsSupported ;
125
80
}
126
81
}
0 commit comments