@@ -2269,14 +2269,18 @@ package body LSP.Ada_Handlers is
22692269
22702270 begin
22712271 LSP.Ada_Handlers.Formatting.Format
2272- (Context.all ,
2273- Document,
2274- LSP.Constants.Empty,
2275- Value.options,
2276- Success,
2277- Response,
2278- Messages,
2279- Error);
2272+ (Context => Context.all ,
2273+ Document => Document,
2274+ Span => LSP.Constants.Empty,
2275+ Options => Value.options,
2276+ Provider =>
2277+ (if Self.Configuration.Use_Gnatformat
2278+ then LSP.Ada_Handlers.Formatting.Gnatformat
2279+ else LSP.Ada_Handlers.Formatting.Gnatpp),
2280+ Success => Success,
2281+ Response => Response,
2282+ Messages => Messages,
2283+ Error => Error);
22802284
22812285 if Success then
22822286 Self.Sender.On_Formatting_Response (Id, Response);
@@ -2732,13 +2736,17 @@ package body LSP.Ada_Handlers is
27322736
27332737 begin
27342738 LSP.Ada_Handlers.Formatting.Range_Format
2735- (Context.all ,
2736- Document,
2737- Previous_NWNC_Token_Span,
2738- Value.options,
2739- Success,
2740- Response,
2741- Error);
2739+ (Context => Context.all ,
2740+ Document => Document,
2741+ Span => Previous_NWNC_Token_Span,
2742+ Options => Value.options,
2743+ Provider =>
2744+ (if Self.Configuration.Use_Gnatformat
2745+ then LSP.Ada_Handlers.Formatting.Gnatformat
2746+ else LSP.Ada_Handlers.Formatting.Gnatpp),
2747+ Success => Success,
2748+ Response => Response,
2749+ Error => Error);
27422750
27432751 if Success then
27442752 -- Result contains the Range_Format result.
@@ -2970,24 +2978,32 @@ package body LSP.Ada_Handlers is
29702978 begin
29712979 if LSP.Ada_Configurations.Partial_GNATPP then
29722980 LSP.Ada_Handlers.Formatting.Range_Format
2973- (Context.all ,
2974- Document,
2975- Value.a_range,
2976- Value.options,
2977- Success,
2978- Response,
2979- Error);
2981+ (Context => Context.all ,
2982+ Document => Document,
2983+ Span => Value.a_range,
2984+ Options => Value.options,
2985+ Provider =>
2986+ (if Self.Configuration.Use_Gnatformat
2987+ then LSP.Ada_Handlers.Formatting.Gnatformat
2988+ else LSP.Ada_Handlers.Formatting.Gnatpp),
2989+ Success => Success,
2990+ Response => Response,
2991+ Error => Error);
29802992
29812993 else
29822994 LSP.Ada_Handlers.Formatting.Format
2983- (Context.all ,
2984- Document,
2985- Value.a_range,
2986- Value.options,
2987- Success,
2988- Response,
2989- Messages,
2990- Error);
2995+ (Context => Context.all ,
2996+ Document => Document,
2997+ Span => Value.a_range,
2998+ Options => Value.options,
2999+ Provider =>
3000+ (if Self.Configuration.Use_Gnatformat
3001+ then LSP.Ada_Handlers.Formatting.Gnatformat
3002+ else LSP.Ada_Handlers.Formatting.Gnatpp),
3003+ Success => Success,
3004+ Response => Response,
3005+ Messages => Messages,
3006+ Error => Error);
29913007 end if ;
29923008
29933009 if Success then
0 commit comments