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
598
598
| {Completion. kind = ExtractedType (typ , _ ); env} :: _ -> Some (typ, env)
599
599
| _ -> None
600
600
601
+ type getCompletionsForContextPathMode = Regular | Pipe
602
+
601
603
let rec getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos ~env
602
- ~exact ~scope ?(mode = ` Regular ) (contextPath : Completable.contextPath ) =
604
+ ~exact ~scope ?(mode = Regular ) (contextPath : Completable.contextPath ) =
603
605
let package = full.package in
604
606
match contextPath with
605
607
| CPString ->
@@ -632,7 +634,7 @@ let rec getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos ~env
632
634
]
633
635
| CPArray (Some cp ) -> (
634
636
match mode with
635
- | ` Regular -> (
637
+ | Regular -> (
636
638
match
637
639
cp
638
640
|> getCompletionsForContextPath ~full ~opens ~raw Opens ~all Files ~pos
@@ -645,7 +647,7 @@ let rec getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos ~env
645
647
Completion. create " dummy" ~env
646
648
~kind: (Completion. ExtractedType (Tarray (env, typ), `Type ));
647
649
])
648
- | ` Pipe ->
650
+ | Pipe ->
649
651
(* Pipe completion with array just needs to know that it's an array, not
650
652
what inner type it has. *)
651
653
[
@@ -772,7 +774,7 @@ let rec getCompletionsForContextPath ~full ~opens ~rawOpens ~allFiles ~pos ~env
772
774
match
773
775
cp
774
776
|> getCompletionsForContextPath ~full ~opens ~raw Opens ~all Files ~pos ~env
775
- ~exact: true ~scope ~mode: ` Pipe
777
+ ~exact: true ~scope ~mode: Pipe
776
778
|> completionsGetTypeEnv
777
779
with
778
780
| None -> []
You can’t perform that action at this time.
0 commit comments