File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1717
1818with VSS.Strings.Conversions ;
1919
20- with LSP.Types ;
2120with LSP.Messages.Common_Writers ;
2221
2322package body LSP.Generic_Notifications is
@@ -81,6 +80,18 @@ package body LSP.Generic_Notifications is
8180 raise Program_Error;
8281 end Visit ;
8382
83+ -- ---------
84+ -- Visit --
85+ -- ---------
86+
87+ procedure Visit
88+ (Self : Notification;
89+ Token : LSP.Types.LSP_Number_Or_String;
90+ Handler : access Visitor) is
91+ begin
92+ raise Program_Error;
93+ end Visit ;
94+
8495 -- ---------
8596 -- Write --
8697 -- ---------
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ with Ada.Streams;
2222
2323with LSP.JSON_Streams ;
2424with LSP.Messages ;
25+ with LSP.Types ;
2526
2627generic
2728 type Base_Message is abstract new LSP.Messages.NotificationMessage
@@ -45,6 +46,11 @@ package LSP.Generic_Notifications is
4546 (Self : Notification;
4647 Handler : access Visitor);
4748
49+ procedure Visit
50+ (Self : Notification;
51+ Token : LSP.Types.LSP_Number_Or_String;
52+ Handler : access Visitor);
53+
4854 procedure Read
4955 (S : access Ada.Streams.Root_Stream_Type'Class;
5056 V : out Notification);
You can’t perform that action at this time.
0 commit comments