File tree Expand file tree Collapse file tree 4 files changed +3
-27
lines changed Expand file tree Collapse file tree 4 files changed +3
-27
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,7 @@ package body LSP.Ada_Indexing is
99
99
Emit_Progress_Report
100
100
(Self.Total_Files_Indexed, Self.Total_Files_To_Index);
101
101
102
- -- Check whether another request is pending. If so, pause
103
- -- the indexing; it will be resumed later as part of
104
- -- After_Request.
105
-
106
- exit when Self.Server.Has_Pending_Work;
102
+ exit ;
107
103
end if ;
108
104
109
105
end ;
@@ -142,8 +138,7 @@ package body LSP.Ada_Indexing is
142
138
Handler.Allocate_Progress_Token (" indexing" );
143
139
Job : LSP.Server_Jobs.Server_Job_Access :=
144
140
new Indexing_Job'
145
- (Server => Server,
146
- Handler => Handler,
141
+ (Handler => Handler,
147
142
Files_To_Index => Files,
148
143
Indexing_Token => Token,
149
144
Total_Files_Indexed => 0 ,
Original file line number Diff line number Diff line change @@ -63,8 +63,7 @@ private
63
63
-- schedule new indexing job
64
64
65
65
type Indexing_Job
66
- (Server : not null access LSP.Servers.Server'Class;
67
- Handler : not null access LSP.Ada_Handlers.Message_Handler'Class) is
66
+ (Handler : not null access LSP.Ada_Handlers.Message_Handler'Class) is
68
67
new LSP.Server_Jobs.Server_Job with
69
68
record
70
69
Files_To_Index : File_Sets.Set;
Original file line number Diff line number Diff line change @@ -975,17 +975,4 @@ package body LSP.Servers is
975
975
return Self.Look_Ahead;
976
976
end Look_Ahead_Message ;
977
977
978
- -- --------------------
979
- -- Has_Pending_Work --
980
- -- --------------------
981
-
982
- function Has_Pending_Work (Self : Server) return Boolean is
983
- use type Ada.Task_Identification.Task_Id;
984
- begin
985
- pragma Assert
986
- (Ada.Task_Identification.Current_Task = Self.Processing_Task'Identity);
987
-
988
- return Self.Input_Queue_Length > 0 ;
989
- end Has_Pending_Work ;
990
-
991
978
end LSP.Servers ;
Original file line number Diff line number Diff line change @@ -104,11 +104,6 @@ package LSP.Servers is
104
104
-- Return number of messages pending in Input_Queue.
105
105
-- For debug purposes only!
106
106
107
- function Has_Pending_Work (Self : Server) return Boolean;
108
- -- Return True if the server has work in the queue, other than the
109
- -- notification/request it's currently processing. This should only be
110
- -- called from the processing task.
111
-
112
107
procedure Enqueue
113
108
(Self : in out Server'Class;
114
109
Job : in out LSP.Server_Jobs.Server_Job_Access);
You can’t perform that action at this time.
0 commit comments