Skip to content

Commit e4ff8cd

Browse files
reznikmmjoaopsazevedo
authored andcommitted
Fix possible Constraint_Error due to discriminant constraint violation
1 parent 319ec42 commit e4ff8cd

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

source/ada/lsp-ada_handlers.adb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6666,13 +6666,12 @@ package body LSP.Ada_Handlers is
66666666

66676667
declare
66686668
Result :
6669-
LSP.Messages.Server_Responses.Formatting_Response
6670-
(Is_Error => False) :=
6671-
Range_Format
6672-
(Self => Context.all,
6673-
Document => Document,
6674-
Span => Previous_NWNC_Token_Span,
6675-
Options => Request.params.options);
6669+
LSP.Messages.Server_Responses.Formatting_Response :=
6670+
Range_Format
6671+
(Self => Context.all,
6672+
Document => Document,
6673+
Span => Previous_NWNC_Token_Span,
6674+
Options => Request.params.options);
66766675
begin
66776676
if Result.Is_Error then
66786677
declare

0 commit comments

Comments
 (0)