Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Sep 2, 2024
1 parent f8cabcb commit f62ccc6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/frontend/query_commands.ml
Original file line number Diff line number Diff line change
Expand Up @@ -835,9 +835,12 @@ let dispatch pipeline (type a) : a Query_protocol.t -> a =
let prefix =
Signature_help.prefix_of_position ~short_path:true source position
in
let application_signature = Signature_help.application_signature ~prefix node in
let application_signature =
Signature_help.application_signature ~prefix node
in
let param offset (p: Signature_help.parameter_info) =
{ label_start = offset + p.param_start; label_end = offset + p.param_end} in
{ label_start = offset + p.param_start; label_end = offset + p.param_end}
in
(match application_signature with
| Some s ->
let prefix =
Expand All @@ -846,7 +849,8 @@ let dispatch pipeline (type a) : a Query_protocol.t -> a =
in
sprintf "%s : " fun_name in
Some { label = prefix ^ s.signature;
parameters = List.map ~f:(param (String.length prefix)) s.parameters;
parameters =
List.map ~f:(param (String.length prefix)) s.parameters;
active_param = Option.value ~default:0 s.active_param;
active_signature = 0;
}
Expand Down

0 comments on commit f62ccc6

Please sign in to comment.