File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ with Ada.Strings.UTF_Encoding;
2626with Ada.Strings.Unbounded ; use Ada.Strings.Unbounded;
2727with Ada.Unchecked_Deallocation ;
2828
29- with GNAT.OS_Lib ; use GNAT.OS_Lib;
29+ with GNAT.OS_Lib ;
3030with GNATCOLL.Utils ; use GNATCOLL.Utils;
3131
3232with GPR2.Containers ;
@@ -37,6 +37,8 @@ with GPR2.Project.Source.Set;
3737with GPR2.Project.Tree.View_Builder ;
3838with GPR2.Project.View ;
3939
40+ with Spawn.Environments ;
41+
4042with VSS.Characters.Latin ;
4143with VSS.Strings.Conversions ;
4244with VSS.Unicode ;
@@ -5003,7 +5005,9 @@ package body LSP.Ada_Handlers is
50035005 Alire_TOML : constant GNATCOLL.VFS.Virtual_File :=
50045006 Self.Root.Create_From_Dir (" alire.toml" );
50055007 begin
5006- if Alire_TOML.Is_Regular_File then
5008+ if Alire_TOML.Is_Regular_File
5009+ and Spawn.Environments.System_Environment.Value (" ALIRE" ) /= " True"
5010+ then
50075011
50085012 Self.Trace.Trace (" Check alire:" );
50095013
@@ -5107,6 +5111,7 @@ package body LSP.Ada_Handlers is
51075111 (Self : access Message_Handler;
51085112 Operation : String := " " ) return LSP_Number_Or_String
51095113 is
5114+ use GNAT.OS_Lib;
51105115
51115116 Pid : constant String :=
51125117 GNATCOLL.Utils.Image (Pid_To_Integer (Current_Process_Id), 1 );
You can’t perform that action at this time.
0 commit comments