Skip to content

Commit e0576f5

Browse files
committed
Avoid double responses for completion/resolve
when the request has no `data` property.
1 parent 8d7644f commit e0576f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/ada/lsp-ada_handlers.adb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,6 +1722,7 @@ package body LSP.Ada_Handlers is
17221722
-- been computed.
17231723
if Value.data.Is_Empty then
17241724
Self.Sender.On_Completion_Resolve_Response (Id, Value);
1725+
return;
17251726
end if;
17261727

17271728
C := Value.data.First;

0 commit comments

Comments
 (0)