File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -598,8 +598,10 @@ let completionsGetCompletionType ~full = function
598598 | {Completion. kind = ExtractedType (typ , _ ); env} :: _ -> Some (typ, env)
599599 | _ -> None
600600
601+ type getCompletionsForContextPathMode = Regular | Pipe
602+
601603let rec getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos ~env
602- ~exact ~scope ?(mode = ` Regular ) (contextPath : Completable.contextPath ) =
604+ ~exact ~scope ?(mode = Regular ) (contextPath : Completable.contextPath ) =
603605 let package = full.package in
604606 match contextPath with
605607 | CPString ->
@@ -632,7 +634,7 @@ let rec getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos ~env
632634 ]
633635 | CPArray (Some cp ) -> (
634636 match mode with
635- | ` Regular -> (
637+ | Regular -> (
636638 match
637639 cp
638640 |> getCompletionsForContextPath ~full ~opens ~raw Opens ~all Files ~pos
@@ -645,7 +647,7 @@ let rec getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos ~env
645647 Completion. create " dummy" ~env
646648 ~kind: (Completion. ExtractedType (Tarray (env, typ), `Type ));
647649 ])
648- | ` Pipe ->
650+ | Pipe ->
649651 (* Pipe completion with array just needs to know that it's an array, not
650652 what inner type it has. *)
651653 [
@@ -772,7 +774,7 @@ let rec getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos ~env
772774 match
773775 cp
774776 |> getCompletionsForContextPath ~full ~opens ~raw Opens ~all Files ~pos ~env
775- ~exact: true ~scope ~mode: ` Pipe
777+ ~exact: true ~scope ~mode: Pipe
776778 |> completionsGetTypeEnv
777779 with
778780 | None -> []
You can’t perform that action at this time.
0 commit comments