Skip to content

Commit a935247

Browse files
committed
Update to latest partial gnatpp API
1 parent e34861e commit a935247

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

source/ada/lsp-ada_completions.adb

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -397,15 +397,14 @@ package body LSP.Ada_Completions is
397397
Filename => "",
398398
Buffer => Full,
399399
Rule => Rule);
400-
Pp.Actions.Set_Partial_GNATPP_Offset (Offset);
401400
Pp.Actions.Format_Vector
402-
(Cmd => Cmd,
403-
Input => Input,
404-
Node => Root (Tmp_Unit),
405-
Output => Output,
406-
Messages => PP_Messages,
407-
Partial_GNATPP => True);
408-
Pp.Actions.Set_Partial_GNATPP_Offset (0);
401+
(Cmd => Cmd,
402+
Input => Input,
403+
Node => Root (Tmp_Unit),
404+
Output => Output,
405+
Messages => PP_Messages,
406+
Initial_Indentation => Offset,
407+
Partial_GNATPP => True);
409408
exception
410409
when E : others =>
411410
-- Failed to pretty print the snippet, keep the previous

0 commit comments

Comments
 (0)