@@ -37,6 +37,7 @@ with Spawn.Environments;
3737
3838with LSP.Ada_Contexts ;
3939with LSP.Ada_Context_Sets ;
40+ with LSP.Ada_Handlers.Alire ;
4041with LSP.Ada_Handlers.File_Readers ;
4142with LSP.Ada_Indexing ;
4243with LSP.Enumerations ;
@@ -51,26 +52,6 @@ package body LSP.Ada_Handlers.Project_Loading is
5152 GNATCOLL.Traces.On);
5253 -- Trace to enable/disable runtime indexing. Useful for the testsuite.
5354
54- package Alire is
55-
56- procedure Run_Alire
57- (Root : String;
58- Has_Alire : out Boolean;
59- Error : out VSS.Strings.Virtual_String;
60- Project : out VSS.Strings.Virtual_String;
61- Environment : in out GPR2.Environment.Object) is null ;
62- -- if Root directory contains `alire.toml` file, then run
63- -- `alr printenv` and fetch the first project from `alire.toml`.
64-
65- procedure Run_Alire
66- (Root : String;
67- Has_Alire : out Boolean;
68- Error : out VSS.Strings.Virtual_String;
69- Environment : in out GPR2.Environment.Object) is null ;
70- -- The same as above, but without fetching the project file
71-
72- end Alire ;
73-
7455 procedure Load_Project_With_Alire
7556 (Self : in out Message_Handler'Class;
7657 Project_File : VSS.Strings.Virtual_String := " " ;
@@ -552,7 +533,7 @@ package body LSP.Ada_Handlers.Project_Loading is
552533
553534 if Project.Is_Empty then
554535
555- Alire.Run_Alire
536+ LSP.Ada_Handlers. Alire.Run_Alire
556537 (Root => Root (Self).Display_Full_Name,
557538 Has_Alire => Has_Alire,
558539 Error => Errors,
@@ -562,7 +543,7 @@ package body LSP.Ada_Handlers.Project_Loading is
562543 Status := Alire_Project;
563544 else
564545
565- Alire.Run_Alire
546+ LSP.Ada_Handlers. Alire.Run_Alire
566547 (Root => Root (Self).Display_Full_Name,
567548 Has_Alire => Has_Alire,
568549 Error => Errors,
0 commit comments