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;
26
26
with Ada.Strings.Unbounded ; use Ada.Strings.Unbounded;
27
27
with Ada.Unchecked_Deallocation ;
28
28
29
- with GNAT.OS_Lib ; use GNAT.OS_Lib;
29
+ with GNAT.OS_Lib ;
30
30
with GNATCOLL.Utils ; use GNATCOLL.Utils;
31
31
32
32
with GPR2.Containers ;
@@ -37,6 +37,8 @@ with GPR2.Project.Source.Set;
37
37
with GPR2.Project.Tree.View_Builder ;
38
38
with GPR2.Project.View ;
39
39
40
+ with Spawn.Environments ;
41
+
40
42
with VSS.Characters.Latin ;
41
43
with VSS.Strings.Conversions ;
42
44
with VSS.Unicode ;
@@ -5003,7 +5005,9 @@ package body LSP.Ada_Handlers is
5003
5005
Alire_TOML : constant GNATCOLL.VFS.Virtual_File :=
5004
5006
Self.Root.Create_From_Dir (" alire.toml" );
5005
5007
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
5007
5011
5008
5012
Self.Trace.Trace (" Check alire:" );
5009
5013
@@ -5107,6 +5111,7 @@ package body LSP.Ada_Handlers is
5107
5111
(Self : access Message_Handler;
5108
5112
Operation : String := " " ) return LSP_Number_Or_String
5109
5113
is
5114
+ use GNAT.OS_Lib;
5110
5115
5111
5116
Pid : constant String :=
5112
5117
GNATCOLL.Utils.Image (Pid_To_Integer (Current_Process_Id), 1 );
You can’t perform that action at this time.
0 commit comments