@@ -45,6 +45,8 @@ package body LSP.Servers is
4545 New_Line : constant String :=
4646 (Ada.Characters.Latin_1.CR, Ada.Characters.Latin_1.LF);
4747
48+ Line_Feed : constant Character := Ada.Characters.Latin_1.LF;
49+
4850 function "+" (Text : Ada.Strings.UTF_Encoding.UTF_8_String)
4951 return LSP.Types.LSP_String renames
5052 LSP.Types.To_LSP_String;
@@ -595,7 +597,7 @@ package body LSP.Servers is
595597 -- Catch-all case: make sure no exception in output writing
596598 -- can cause an exit of the task loop.
597599 Self.Server_Trace.Trace
598- (" Exception when reading input:" & ASCII.LF
600+ (" Exception when reading input:" & Line_Feed
599601 & Exception_Name (E) & " - " & Exception_Message (E));
600602 Self.Server_Trace.Trace (Symbolic_Traceback (E));
601603 end Process_One_Message ;
@@ -770,7 +772,7 @@ package body LSP.Servers is
770772 Code : LSP.Messages.ErrorCodes := LSP.Errors.InternalError)
771773 is
772774 Exception_Text : constant String :=
773- Exception_Name (E) & ASCII.LF & Symbolic_Traceback (E);
775+ Exception_Name (E) & Line_Feed & Symbolic_Traceback (E);
774776 Response : Response_Access :=
775777 new LSP.Messages.ResponseMessage'
776778 (Is_Error => True,
@@ -791,8 +793,8 @@ package body LSP.Servers is
791793
792794 -- Log details in the traces
793795 Self.Server_Trace.Trace
794- (" Exception when processing request:" & ASCII.LF
795- & Trace_Text & ASCII.LF
796+ (" Exception when processing request:" & Line_Feed
797+ & Trace_Text & Line_Feed
796798 & Exception_Text);
797799 end Send_Exception_Response ;
798800
@@ -1072,8 +1074,8 @@ package body LSP.Servers is
10721074 -- Catch-all case: make sure no exception in output writing
10731075 -- can cause an exit of the task loop.
10741076 Server.Server_Trace.Trace
1075- (" Exception when writing output:" & ASCII.LF
1076- -- & To_String (Output) & ASCII.LF
1077+ (" Exception when writing output:" & Line_Feed
1078+ -- & To_String (Output) & Line_Feed
10771079 & Exception_Name (E) & " - " & Exception_Message (E));
10781080 Server.Server_Trace.Trace (Symbolic_Traceback (E));
10791081
@@ -1154,8 +1156,8 @@ package body LSP.Servers is
11541156 when E : others =>
11551157 -- Always log an exception in the traces
11561158 Server.Server_Trace.Trace
1157- (" Exception (processing notification):" & ASCII.LF
1158- & Exception_Name (E) & ASCII.LF &
1159+ (" Exception (processing notification):" & Line_Feed
1160+ & Exception_Name (E) & Line_Feed &
11591161 Symbolic_Traceback (E));
11601162 end ;
11611163
0 commit comments