File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -3379,6 +3379,7 @@ package body LSP.Ada_Handlers is
33793379 LSP.File_Monitors.File_Monitor_Access);
33803380
33813381 Response : LSP.Structures.InitializeResult;
3382+ Log_Info : LSP.Structures.LogMessageParams;
33823383 Token_Types : LSP.Structures.Virtual_String_Vector;
33833384 Token_Motifiers : LSP.Structures.Virtual_String_Vector;
33843385 begin
@@ -3402,6 +3403,11 @@ package body LSP.Ada_Handlers is
34023403 end if ;
34033404
34043405 Self.Sender.On_Initialize_Response (Id, Response);
3406+
3407+ Log_Info.a_type := LSP.Enumerations.Log;
3408+ Log_Info.message.Append (" Log directory is " );
3409+ Log_Info.message.Append (Self.Tracer.Location);
3410+ Self.Sender.On_LogMessage_Notification (Log_Info);
34053411 end On_Initialize_Request ;
34063412
34073413 -- -------------------------------
Original file line number Diff line number Diff line change @@ -39,6 +39,17 @@ package body LSP.GNATCOLL_Tracers is
3939 Self.Out_Trace := Out_Trace;
4040 end Initialize ;
4141
42+ -- ------------
43+ -- Location --
44+ -- ------------
45+
46+ overriding function Location
47+ (Self : Tracer) return VSS.Strings.Virtual_String is
48+ begin
49+ return VSS.Strings.Conversions.To_Virtual_String
50+ (Self.Server_Trace.Get_Stream_File.Display_Full_Name);
51+ end Location ;
52+
4253 -- ---------
4354 -- Trace --
4455 -- ---------
Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ package LSP.GNATCOLL_Tracers is
6363 (Self : in out Tracer;
6464 Text : VSS.Stream_Element_Vectors.Stream_Element_Vector);
6565
66+ overriding function Location
67+ (Self : Tracer) return VSS.Strings.Virtual_String;
68+
6669private
6770
6871 type Tracer is limited new LSP.Tracers.Tracer with record
Original file line number Diff line number Diff line change @@ -61,4 +61,8 @@ package LSP.Tracers is
6161 Text : VSS.Stream_Element_Vectors.Stream_Element_Vector) is abstract ;
6262 -- Append raw data as text to output trace file
6363
64+ function Location (Self : Tracer) return VSS.Strings.Virtual_String
65+ is abstract ;
66+ -- Return information about trace location on the filesystem.
67+
6468end LSP.Tracers ;
You can’t perform that action at this time.
0 commit comments