Skip to content

Commit 2ca475a

Browse files
committed
Remove Alire environment setup from client initialization
1 parent cf58575 commit 2ca475a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

source/ada/lsp-ada_client_capabilities.adb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ with VSS.Strings.Conversions;
2727
with LSP.Ada_Configurations;
2828
with LSP.Constants;
2929
with LSP.Enumerations;
30-
with LSP.GPR_Files;
3130
with LSP.Structures.Unwrap;
3231

3332
with LSP.Structures.LSPAny_Vectors;
@@ -209,8 +208,6 @@ package body LSP.Ada_Client_Capabilities is
209208

210209
Self.Parse_Experimental;
211210

212-
LSP.GPR_Files.Set_Environment (Client_Capability (Self));
213-
214211
end Initialize;
215212

216213
------------------------

source/gpr/lsp-gpr_handlers.adb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ package body LSP.GPR_Handlers is
410410

411411
Self.Client.Initialize (Value);
412412

413+
LSP.GPR_Files.Set_Environment (Self.Client);
414+
413415
Capabilities.hoverProvider := LSP.Constants.True;
414416
Capabilities.definitionProvider := LSP.Constants.True;
415417
Capabilities.declarationProvider := LSP.Constants.True;

0 commit comments

Comments
 (0)