@@ -35,6 +35,7 @@ with GPR2.Project.Registry.Attribute;
3535with GPR2.Project.Source.Set ;
3636with GPR2.Project.Tree.View_Builder ;
3737with GPR2.Project.View ;
38+ with GPR2.Source_Info ;
3839
3940with Spawn.Environments ;
4041
@@ -651,7 +652,9 @@ package body LSP.Ada_Handlers is
651652 Context => Self.Project_Environment.Context,
652653 Build_Path => Self.Project_Environment.Build_Path);
653654
654- Self.Project_Tree.Update_Sources (With_Runtime => True);
655+ Self.Project_Tree.Update_Sources
656+ (With_Runtime => True,
657+ Backends => GPR2.Source_Info.No_Backends);
655658
656659 exception
657660 when E : others =>
@@ -5045,7 +5048,10 @@ package body LSP.Ada_Handlers is
50455048 Self.Project_Status := No_Runtime_Found;
50465049 end if ;
50475050
5048- Self.Project_Tree.Update_Sources (With_Runtime => True);
5051+ Self.Project_Tree.Update_Sources
5052+ (With_Runtime => True,
5053+ Backends => GPR2.Source_Info.No_Backends);
5054+
50495055 Update_Project_Predefined_Sources (Self);
50505056
50515057 if Self.Project_Tree.Root_Project.Kind in GPR2.Aggregate_Kind then
@@ -5425,7 +5431,9 @@ package body LSP.Ada_Handlers is
54255431
54265432 -- New sources were created on this project, so recompute its view
54275433
5428- Self.Project_Tree.Update_Sources (With_Runtime => True);
5434+ Self.Project_Tree.Update_Sources
5435+ (With_Runtime => True,
5436+ Backends => GPR2.Source_Info.No_Backends);
54295437
54305438 -- For each created file of Value.files:
54315439 -- - find the contexts that contains its directory
@@ -5511,7 +5519,9 @@ package body LSP.Ada_Handlers is
55115519
55125520 -- Some project sources were renamed, so recompute its view
55135521
5514- Self.Project_Tree.Update_Sources (With_Runtime => True);
5522+ Self.Project_Tree.Update_Sources
5523+ (With_Runtime => True,
5524+ Backends => GPR2.Source_Info.No_Backends);
55155525
55165526 -- For each oldUri of Value.files:
55175527 -- - map it to a list of context that contains it
@@ -5623,7 +5633,9 @@ package body LSP.Ada_Handlers is
56235633
56245634 -- Some project sources were deleted, so recompute its view
56255635
5626- Self.Project_Tree.Update_Sources (With_Runtime => True);
5636+ Self.Project_Tree.Update_Sources
5637+ (With_Runtime => True,
5638+ Backends => GPR2.Source_Info.No_Backends);
56275639
56285640 -- For each delete file of Value.files:
56295641 -- - find the contexts that contains it
0 commit comments