File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,7 @@ begin
348
348
end ;
349
349
end if ;
350
350
351
+ Ada_Handler.Stop_File_Monitoring;
351
352
Server.Finalize;
352
353
if Clean_ALS_Dir then
353
354
Ada_Handler.Clean_Logs (ALS_Dir);
Original file line number Diff line number Diff line change @@ -507,17 +507,24 @@ package body LSP.Ada_Handlers is
507
507
Self.Total_Files_Indexed := 0 ;
508
508
end Release_Contexts_And_Project_Info ;
509
509
510
+ -- ------------------------
511
+ -- Stop_File_Monitoring --
512
+ -- ------------------------
513
+
514
+ procedure Stop_File_Monitoring (Self : access Message_Handler) is
515
+ begin
516
+ if Self.File_Monitor.Assigned then
517
+ Self.File_Monitor.Stop_Monitoring_Directories;
518
+ end if ;
519
+ end Stop_File_Monitoring ;
520
+
510
521
-- -----------
511
522
-- Cleanup --
512
523
-- -----------
513
524
514
525
procedure Cleanup (Self : access Message_Handler)
515
526
is
516
527
begin
517
- if Self.File_Monitor.Assigned then
518
- Self.File_Monitor.Stop_Monitoring_Directories;
519
- end if ;
520
-
521
528
-- Cleanup documents
522
529
for Document of Self.Open_Documents loop
523
530
Free (Document);
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ package LSP.Ada_Handlers is
61
61
-- This procedure will be called when an unexpected error is raised in the
62
62
-- request processing loop.
63
63
64
+ procedure Stop_File_Monitoring (Self : access Message_Handler);
65
+
64
66
procedure Cleanup (Self : access Message_Handler);
65
67
-- Free memory referenced by Self
66
68
You can’t perform that action at this time.
0 commit comments