File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,9 @@ package body LSP.Ada_Handlers is
59
59
is
60
60
Root : LSP.Types.LSP_String;
61
61
begin
62
- Response.result.capabilities.definitionProvider :=
63
- LSP.Types.Optional_True;
64
- Response.result.capabilities.referencesProvider :=
65
- LSP.Types.Optional_True;
66
- Response.result.capabilities.documentSymbolProvider :=
67
- LSP.Types.Optional_True;
62
+ Response.result.capabilities.definitionProvider := True;
63
+ Response.result.capabilities.referencesProvider := True;
64
+ Response.result.capabilities.documentSymbolProvider := True;
68
65
Response.result.capabilities.textDocumentSync :=
69
66
(Is_Set => True, Is_Number => True, Value => LSP.Messages.Full);
70
67
Response.result.capabilities.completionProvider :=
Original file line number Diff line number Diff line change @@ -90,15 +90,27 @@ package LSP.Types is
90
90
package Optional_Numbers is new LSP.Generic_Optional (LSP_Number);
91
91
type Optional_Number is new Optional_Numbers.Optional_Type;
92
92
93
+ -- --------------------
94
+ -- Optional_Boolean --
95
+ -- --------------------
96
+
93
97
package Optional_Booleans is new LSP.Generic_Optional (Boolean);
94
98
type Optional_Boolean is new Optional_Booleans.Optional_Type;
95
99
100
+ function False return Optional_Boolean
101
+ is ((Is_Set => Standard.True, Value => Standard.False));
102
+ function True return Optional_Boolean
103
+ is ((Is_Set => Standard.True, Value => Standard.True));
104
+ function None return Optional_Boolean
105
+ is ((Is_Set => Standard.False));
106
+
107
+ -- -------------------
108
+ -- Optional_String --
109
+ -- -------------------
110
+
96
111
package Optional_Strings is new LSP.Generic_Optional (LSP_String);
97
112
type Optional_String is new Optional_Strings.Optional_Type;
98
113
99
- Optional_False : constant Optional_Boolean := (True, False);
100
- Optional_True : constant Optional_Boolean := (True, True);
101
-
102
114
subtype MessageActionItem_Vector is LSP_String_Vector;
103
115
104
116
type Registration_Option_Kinds is
You can’t perform that action at this time.
0 commit comments