Skip to content

Commit d1e94ee

Browse files
Register external tool attributes for Ada too
This is needed in order to recognize and read project attributes via the 'als-get-project-attribute-value' command, which is used by the VS Code extension.' For eng/ide/ada_language_server#1375
1 parent 0c385e6 commit d1e94ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/ada/lsp-ada_driver.adb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,9 @@ begin
599599
Server.Initialize (Stream'Unchecked_Access);
600600

601601
begin
602-
if VSS.Command_Line.Is_Specified (Language_GPR_Option) then
602+
LSP.GPR_External_Tools.Initialize_Extra_Packages_Attributes;
603603

604-
LSP.GPR_External_Tools.Initialize_Extra_Packages_Attributes;
604+
if VSS.Command_Line.Is_Specified (Language_GPR_Option) then
605605

606606
Server.Register_Handler
607607
(LSP.Server_Notifications.DidChange.Notification'Tag,

0 commit comments

Comments
 (0)