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
3379
3379
LSP.File_Monitors.File_Monitor_Access);
3380
3380
3381
3381
Response : LSP.Structures.InitializeResult;
3382
+ Log_Info : LSP.Structures.LogMessageParams;
3382
3383
Token_Types : LSP.Structures.Virtual_String_Vector;
3383
3384
Token_Motifiers : LSP.Structures.Virtual_String_Vector;
3384
3385
begin
@@ -3402,6 +3403,11 @@ package body LSP.Ada_Handlers is
3402
3403
end if ;
3403
3404
3404
3405
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);
3405
3411
end On_Initialize_Request ;
3406
3412
3407
3413
-- -------------------------------
Original file line number Diff line number Diff line change @@ -39,6 +39,17 @@ package body LSP.GNATCOLL_Tracers is
39
39
Self.Out_Trace := Out_Trace;
40
40
end Initialize ;
41
41
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
+
42
53
-- ---------
43
54
-- Trace --
44
55
-- ---------
Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ package LSP.GNATCOLL_Tracers is
63
63
(Self : in out Tracer;
64
64
Text : VSS.Stream_Element_Vectors.Stream_Element_Vector);
65
65
66
+ overriding function Location
67
+ (Self : Tracer) return VSS.Strings.Virtual_String;
68
+
66
69
private
67
70
68
71
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
61
61
Text : VSS.Stream_Element_Vectors.Stream_Element_Vector) is abstract ;
62
62
-- Append raw data as text to output trace file
63
63
64
+ function Location (Self : Tracer) return VSS.Strings.Virtual_String
65
+ is abstract ;
66
+ -- Return information about trace location on the filesystem.
67
+
64
68
end LSP.Tracers ;
You can’t perform that action at this time.
0 commit comments