File tree Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Original file line number Diff line number Diff line change 18
18
with GNATCOLL.Utils ;
19
19
with GNATCOLL.Traces ;
20
20
with Laltools.Common ;
21
- with Libadalang.Doc_Utils ;
22
21
with LSP.Ada_Documents ;
23
22
with LSP.Ada_Documentation ;
24
23
with LSP.Lal_Utils ;
@@ -497,15 +496,7 @@ package body LSP.Ada_Completions.Generic_Assoc is
497
496
498
497
procedure Add_Signature (Spec : Assoc_Data) is
499
498
Signature : LSP.Messages.SignatureInformation :=
500
- (label => LSP.Ada_Documentation.Get_Hover_Text (Spec.Decl),
501
- documentation =>
502
- (Is_Set => True,
503
- Value =>
504
- (Is_String => True,
505
- String =>
506
- VSS.Strings.To_Virtual_String
507
- (Libadalang.Doc_Utils.Get_Documentation
508
- (Spec.Decl).Doc.To_String))),
499
+ (label => <>,
509
500
activeParameter =>
510
501
(Is_Set => True,
511
502
Value =>
@@ -515,7 +506,24 @@ package body LSP.Ada_Completions.Generic_Assoc is
515
506
Cursor_Position => Cursor_Position)),
516
507
others => <>
517
508
);
509
+ Location_Text : VSS.Strings.Virtual_String;
510
+ Documentation_Text : VSS.Strings.Virtual_String;
511
+ Declaration_Text : VSS.Strings.Virtual_String;
512
+
518
513
begin
514
+ LSP.Ada_Documentation.Get_Tooltip_Text
515
+ (Spec.Decl,
516
+ Me_Debug,
517
+ Context.Get_Documentation_Style,
518
+ Location_Text,
519
+ Documentation_Text,
520
+ Declaration_Text);
521
+
522
+ Signature.label := Declaration_Text;
523
+ Signature.documentation :=
524
+ (Is_Set => True,
525
+ Value => (Is_String => True, String => Documentation_Text));
526
+
519
527
for Param of Spec.Param_Vector loop
520
528
declare
521
529
P : constant LSP.Messages.ParameterInformation :=
You can’t perform that action at this time.
0 commit comments