Skip to content

Commit 37bb74d

Browse files
committed
Merge branch 'topic/W505-020_clarify_tooltip_message_in_aggregates' into 'master'
Clarify the message in hovers when in aggregate projects See merge request eng/ide/ada_language_server!1191
2 parents 88d8abf + 4ccd51b commit 37bb74d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

source/ada/lsp-ada_handlers.adb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3251,8 +3251,10 @@ package body LSP.Ada_Handlers is
32513251
Location_Text := LSP.Lal_Utils.Node_Location_Image (Decl);
32523252

32533253
if Self.Project_Tree.Root_Project.Is_Aggregate_Project then
3254-
Location_Text.Append (" in project ");
3254+
Location_Text.Append (VSS.Characters.Latin.Line_Feed);
3255+
Location_Text.Append ("As defined in project ");
32553256
Location_Text.Append (C.Id);
3257+
Location_Text.Append (" (other projects skipped).");
32563258
end if;
32573259

32583260
Response.result.Value.contents.Vector.Append

testsuite/ada_lsp/implementation.aggregates/test.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
"value": "function Common_Fun return Integer",
240240
"language": "ada"
241241
},
242-
"at common_pack.ads (4:4) in project p"
242+
"at common_pack.ads (4:4)\nAs defined in project p (other projects skipped)."
243243
]
244244
}
245245
}
@@ -271,7 +271,7 @@
271271
"value": "function Common_Fun return Integer",
272272
"language": "ada"
273273
},
274-
"at common_pack.ads (4:4) in project p"
274+
"at common_pack.ads (4:4)\nAs defined in project p (other projects skipped)."
275275
]
276276
}
277277
}

0 commit comments

Comments
 (0)