@@ -35,7 +35,6 @@ with GPR2.Project.Registry.Attribute;
35
35
with GPR2.Project.Source.Set ;
36
36
with GPR2.Project.Tree.View_Builder ;
37
37
with GPR2.Project.View ;
38
- with GPR2.Source_Info ;
39
38
40
39
with Spawn.Environments ;
41
40
@@ -652,9 +651,7 @@ package body LSP.Ada_Handlers is
652
651
Context => Self.Project_Environment.Context,
653
652
Build_Path => Self.Project_Environment.Build_Path);
654
653
655
- Self.Project_Tree.Update_Sources
656
- (With_Runtime => True,
657
- Backends => GPR2.Source_Info.No_Backends);
654
+ Self.Project_Tree.Update_Sources (With_Runtime => True);
658
655
659
656
exception
660
657
when E : others =>
@@ -5048,10 +5045,7 @@ package body LSP.Ada_Handlers is
5048
5045
Self.Project_Status := No_Runtime_Found;
5049
5046
end if ;
5050
5047
5051
- Self.Project_Tree.Update_Sources
5052
- (With_Runtime => True,
5053
- Backends => GPR2.Source_Info.No_Backends);
5054
-
5048
+ Self.Project_Tree.Update_Sources (With_Runtime => True);
5055
5049
Update_Project_Predefined_Sources (Self);
5056
5050
5057
5051
if Self.Project_Tree.Root_Project.Kind in GPR2.Aggregate_Kind then
@@ -5431,9 +5425,7 @@ package body LSP.Ada_Handlers is
5431
5425
5432
5426
-- New sources were created on this project, so recompute its view
5433
5427
5434
- Self.Project_Tree.Update_Sources
5435
- (With_Runtime => True,
5436
- Backends => GPR2.Source_Info.No_Backends);
5428
+ Self.Project_Tree.Update_Sources (With_Runtime => True);
5437
5429
5438
5430
-- For each created file of Value.files:
5439
5431
-- - find the contexts that contains its directory
@@ -5519,9 +5511,7 @@ package body LSP.Ada_Handlers is
5519
5511
5520
5512
-- Some project sources were renamed, so recompute its view
5521
5513
5522
- Self.Project_Tree.Update_Sources
5523
- (With_Runtime => True,
5524
- Backends => GPR2.Source_Info.No_Backends);
5514
+ Self.Project_Tree.Update_Sources (With_Runtime => True);
5525
5515
5526
5516
-- For each oldUri of Value.files:
5527
5517
-- - map it to a list of context that contains it
@@ -5633,9 +5623,7 @@ package body LSP.Ada_Handlers is
5633
5623
5634
5624
-- Some project sources were deleted, so recompute its view
5635
5625
5636
- Self.Project_Tree.Update_Sources
5637
- (With_Runtime => True,
5638
- Backends => GPR2.Source_Info.No_Backends);
5626
+ Self.Project_Tree.Update_Sources (With_Runtime => True);
5639
5627
5640
5628
-- For each delete file of Value.files:
5641
5629
-- - find the contexts that contains it
0 commit comments