@@ -35,7 +35,6 @@ 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 ;
3938
4039with Spawn.Environments ;
4140
@@ -652,9 +651,7 @@ package body LSP.Ada_Handlers is
652651 Context => Self.Project_Environment.Context,
653652 Build_Path => Self.Project_Environment.Build_Path);
654653
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);
658655
659656 exception
660657 when E : others =>
@@ -5048,10 +5045,7 @@ package body LSP.Ada_Handlers is
50485045 Self.Project_Status := No_Runtime_Found;
50495046 end if ;
50505047
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);
50555049 Update_Project_Predefined_Sources (Self);
50565050
50575051 if Self.Project_Tree.Root_Project.Kind in GPR2.Aggregate_Kind then
@@ -5431,9 +5425,7 @@ package body LSP.Ada_Handlers is
54315425
54325426 -- New sources were created on this project, so recompute its view
54335427
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);
54375429
54385430 -- For each created file of Value.files:
54395431 -- - find the contexts that contains its directory
@@ -5519,9 +5511,7 @@ package body LSP.Ada_Handlers is
55195511
55205512 -- Some project sources were renamed, so recompute its view
55215513
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);
55255515
55265516 -- For each oldUri of Value.files:
55275517 -- - map it to a list of context that contains it
@@ -5633,9 +5623,7 @@ package body LSP.Ada_Handlers is
56335623
56345624 -- Some project sources were deleted, so recompute its view
56355625
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);
56395627
56405628 -- For each delete file of Value.files:
56415629 -- - find the contexts that contains it
0 commit comments