|
| 1 | +-- |
| 2 | +-- Copyright (C) <YEAR>, <COPYRIGHT HOLDER> |
| 3 | +-- |
| 4 | +-- SPDX-License-Identifier: MIT |
| 5 | +-- |
| 6 | +-- DON'T EDIT THIS FILE! It was generated from metaModel.json. |
| 7 | +-- |
| 8 | + |
| 9 | +with VSS.Strings; |
| 10 | + |
| 11 | +package body LSP.Client_Request_Loggers is |
| 12 | + |
| 13 | + overriding procedure On_RegisterCapability_Request |
| 14 | + (Self : in out Client_Request_Logger; |
| 15 | + Id : LSP.Structures.Integer_Or_Virtual_String; |
| 16 | + Value : LSP.Structures.RegistrationParams) is |
| 17 | + Ok : Boolean := False; |
| 18 | + begin |
| 19 | + Self.Output.Put ("'client/registerCapability'", Ok); |
| 20 | + Self.Put_Id (Id, Ok); |
| 21 | + Self.Output.Put (" Params : ", Ok); |
| 22 | + Self.Output.Put |
| 23 | + (VSS.Strings.To_Virtual_String (Value'Wide_Wide_Image), Ok); |
| 24 | + Self.Output.New_Line (Ok); |
| 25 | + end On_RegisterCapability_Request; |
| 26 | + |
| 27 | + overriding procedure On_UnregisterCapability_Request |
| 28 | + (Self : in out Client_Request_Logger; |
| 29 | + Id : LSP.Structures.Integer_Or_Virtual_String; |
| 30 | + Value : LSP.Structures.UnregistrationParams) is |
| 31 | + Ok : Boolean := False; |
| 32 | + begin |
| 33 | + Self.Output.Put ("'client/unregisterCapability'", Ok); |
| 34 | + Self.Put_Id (Id, Ok); |
| 35 | + Self.Output.Put (" Params : ", Ok); |
| 36 | + Self.Output.Put |
| 37 | + (VSS.Strings.To_Virtual_String (Value'Wide_Wide_Image), Ok); |
| 38 | + Self.Output.New_Line (Ok); |
| 39 | + end On_UnregisterCapability_Request; |
| 40 | + |
| 41 | + overriding procedure On_ShowDocument_Request |
| 42 | + (Self : in out Client_Request_Logger; |
| 43 | + Id : LSP.Structures.Integer_Or_Virtual_String; |
| 44 | + Value : LSP.Structures.ShowDocumentParams) is |
| 45 | + Ok : Boolean := False; |
| 46 | + begin |
| 47 | + Self.Output.Put ("'window/showDocument'", Ok); |
| 48 | + Self.Put_Id (Id, Ok); |
| 49 | + Self.Output.Put (" Params : ", Ok); |
| 50 | + Self.Output.Put |
| 51 | + (VSS.Strings.To_Virtual_String (Value'Wide_Wide_Image), Ok); |
| 52 | + Self.Output.New_Line (Ok); |
| 53 | + end On_ShowDocument_Request; |
| 54 | + |
| 55 | + overriding procedure On_ShowMessageRequest_Request |
| 56 | + (Self : in out Client_Request_Logger; |
| 57 | + Id : LSP.Structures.Integer_Or_Virtual_String; |
| 58 | + Value : LSP.Structures.ShowMessageRequestParams) is |
| 59 | + Ok : Boolean := False; |
| 60 | + begin |
| 61 | + Self.Output.Put ("'window/showMessageRequest'", Ok); |
| 62 | + Self.Put_Id (Id, Ok); |
| 63 | + Self.Output.Put (" Params : ", Ok); |
| 64 | + Self.Output.Put |
| 65 | + (VSS.Strings.To_Virtual_String (Value'Wide_Wide_Image), Ok); |
| 66 | + Self.Output.New_Line (Ok); |
| 67 | + end On_ShowMessageRequest_Request; |
| 68 | + |
| 69 | + overriding procedure On_Progress_Create_Request |
| 70 | + (Self : in out Client_Request_Logger; |
| 71 | + Id : LSP.Structures.Integer_Or_Virtual_String; |
| 72 | + Value : LSP.Structures.WorkDoneProgressCreateParams) is |
| 73 | + Ok : Boolean := False; |
| 74 | + begin |
| 75 | + Self.Output.Put ("'window/workDoneProgress/create'", Ok); |
| 76 | + Self.Put_Id (Id, Ok); |
| 77 | + Self.Output.Put (" Params : ", Ok); |
| 78 | + Self.Output.Put |
| 79 | + (VSS.Strings.To_Virtual_String (Value'Wide_Wide_Image), Ok); |
| 80 | + Self.Output.New_Line (Ok); |
| 81 | + end On_Progress_Create_Request; |
| 82 | + |
| 83 | + overriding procedure On_ApplyEdit_Request |
| 84 | + (Self : in out Client_Request_Logger; |
| 85 | + Id : LSP.Structures.Integer_Or_Virtual_String; |
| 86 | + Value : LSP.Structures.ApplyWorkspaceEditParams) is |
| 87 | + Ok : Boolean := False; |
| 88 | + begin |
| 89 | + Self.Output.Put ("'workspace/applyEdit'", Ok); |
| 90 | + Self.Put_Id (Id, Ok); |
| 91 | + Self.Output.Put (" Params : ", Ok); |
| 92 | + Self.Output.Put |
| 93 | + (VSS.Strings.To_Virtual_String (Value'Wide_Wide_Image), Ok); |
| 94 | + Self.Output.New_Line (Ok); |
| 95 | + end On_ApplyEdit_Request; |
| 96 | + |
| 97 | + overriding procedure On_Code_Lens_Refresh_Request |
| 98 | + (Self : in out Client_Request_Logger; |
| 99 | + Id : LSP.Structures.Integer_Or_Virtual_String) is |
| 100 | + Ok : Boolean := False; |
| 101 | + begin |
| 102 | + Self.Output.Put ("'workspace/codeLens/refresh'", Ok); |
| 103 | + Self.Put_Id (Id, Ok); |
| 104 | + Self.Output.New_Line (Ok); |
| 105 | + end On_Code_Lens_Refresh_Request; |
| 106 | + |
| 107 | + overriding procedure On_Configuration_Request |
| 108 | + (Self : in out Client_Request_Logger; |
| 109 | + Id : LSP.Structures.Integer_Or_Virtual_String; |
| 110 | + Value : LSP.Structures.ConfigurationParams) is |
| 111 | + Ok : Boolean := False; |
| 112 | + begin |
| 113 | + Self.Output.Put ("'workspace/configuration'", Ok); |
| 114 | + Self.Put_Id (Id, Ok); |
| 115 | + Self.Output.Put (" Params : ", Ok); |
| 116 | + Self.Output.Put |
| 117 | + (VSS.Strings.To_Virtual_String (Value'Wide_Wide_Image), Ok); |
| 118 | + Self.Output.New_Line (Ok); |
| 119 | + end On_Configuration_Request; |
| 120 | + |
| 121 | + overriding procedure On_Diagnostic_Refresh_Request |
| 122 | + (Self : in out Client_Request_Logger; |
| 123 | + Id : LSP.Structures.Integer_Or_Virtual_String) is |
| 124 | + Ok : Boolean := False; |
| 125 | + begin |
| 126 | + Self.Output.Put ("'workspace/diagnostic/refresh'", Ok); |
| 127 | + Self.Put_Id (Id, Ok); |
| 128 | + Self.Output.New_Line (Ok); |
| 129 | + end On_Diagnostic_Refresh_Request; |
| 130 | + |
| 131 | + overriding procedure On_Inlay_Refresh_Request |
| 132 | + (Self : in out Client_Request_Logger; |
| 133 | + Id : LSP.Structures.Integer_Or_Virtual_String) is |
| 134 | + Ok : Boolean := False; |
| 135 | + begin |
| 136 | + Self.Output.Put ("'workspace/inlayHint/refresh'", Ok); |
| 137 | + Self.Put_Id (Id, Ok); |
| 138 | + Self.Output.New_Line (Ok); |
| 139 | + end On_Inlay_Refresh_Request; |
| 140 | + |
| 141 | + overriding procedure On_Inline_Refresh_Request |
| 142 | + (Self : in out Client_Request_Logger; |
| 143 | + Id : LSP.Structures.Integer_Or_Virtual_String) is |
| 144 | + Ok : Boolean := False; |
| 145 | + begin |
| 146 | + Self.Output.Put ("'workspace/inlineValue/refresh'", Ok); |
| 147 | + Self.Put_Id (Id, Ok); |
| 148 | + Self.Output.New_Line (Ok); |
| 149 | + end On_Inline_Refresh_Request; |
| 150 | + |
| 151 | + overriding procedure On_Tokens_Refresh_Request |
| 152 | + (Self : in out Client_Request_Logger; |
| 153 | + Id : LSP.Structures.Integer_Or_Virtual_String) is |
| 154 | + Ok : Boolean := False; |
| 155 | + begin |
| 156 | + Self.Output.Put ("'workspace/semanticTokens/refresh'", Ok); |
| 157 | + Self.Put_Id (Id, Ok); |
| 158 | + Self.Output.New_Line (Ok); |
| 159 | + end On_Tokens_Refresh_Request; |
| 160 | + |
| 161 | + overriding procedure On_WorkspaceFolders_Request |
| 162 | + (Self : in out Client_Request_Logger; |
| 163 | + Id : LSP.Structures.Integer_Or_Virtual_String) is |
| 164 | + Ok : Boolean := False; |
| 165 | + begin |
| 166 | + Self.Output.Put ("'workspace/workspaceFolders'", Ok); |
| 167 | + Self.Put_Id (Id, Ok); |
| 168 | + Self.Output.New_Line (Ok); |
| 169 | + end On_WorkspaceFolders_Request; |
| 170 | + |
| 171 | + procedure Put_Id |
| 172 | + (Self : in out Client_Request_Logger'Class; |
| 173 | + Id : LSP.Structures.Integer_Or_Virtual_String; |
| 174 | + Ok : in out Boolean) is |
| 175 | + begin |
| 176 | + Self.Output.Put (" Id=", Ok); |
| 177 | + |
| 178 | + if Id.Is_Integer then |
| 179 | + Self.Output.Put |
| 180 | + (VSS.Strings.To_Virtual_String (Id.Integer'Wide_Wide_Image), Ok); |
| 181 | + else |
| 182 | + Self.Output.Put (Id.Virtual_String, Ok); |
| 183 | + end if; |
| 184 | + end Put_Id; |
| 185 | + |
| 186 | +end LSP.Client_Request_Loggers; |
0 commit comments