Skip to content

Commit 7ceab58

Browse files
author
Philippe Gil
committed
Let client call hover request
Part of #1186
1 parent 756f5bd commit 7ceab58

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/gpr/lsp-gpr_handlers.adb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,15 @@ package body LSP.GPR_Handlers is
489489
Value : LSP.Structures.InitializeParams)
490490
is
491491
Response : LSP.Structures.InitializeResult;
492+
Capabilities : LSP.Structures.ServerCapabilities;
492493

493494
begin
494495
Self.File_Reader := LSP.GPR_File_Readers.Create (Self'Unchecked_Access);
495496

497+
Capabilities.hoverProvider := LSP.Constants.True;
498+
499+
Response.capabilities := Capabilities;
500+
496501
Response.capabilities.textDocumentSync :=
497502
(Is_Set => True,
498503
Value => (Is_TextDocumentSyncOptions => True,

0 commit comments

Comments
 (0)