@@ -286,7 +286,10 @@ let processLocalValue name loc contextPath ~prefix ~exact ~env
286
286
Completion. create name ~env
287
287
~kind:
288
288
(match contextPath with
289
- | Some contextPath -> FollowContextPath contextPath
289
+ | Some (Scope. Completable contextPath ) ->
290
+ FollowContextPath (`Completable contextPath)
291
+ | Some (Scope. New contextPath ) ->
292
+ FollowContextPath (`New contextPath)
290
293
| None ->
291
294
Value
292
295
(Ctype. newconstr
@@ -628,7 +631,7 @@ let rec completionsGetCompletionType2 ~debug ~full ~opens ~rawOpens ~pos ~scope
628
631
| {Completion. kind = ObjLabel typ; env} :: _
629
632
| {Completion. kind = Field ({typ} , _ ); env} :: _ ->
630
633
Some (TypeExpr typ, env)
631
- | {Completion. kind = FollowContextPath ctxPath ; env} :: _ ->
634
+ | {Completion. kind = FollowContextPath (`Completable ctxPath ) ; env} :: _ ->
632
635
ctxPath
633
636
|> getCompletionsForContextPath ~debug ~full ~env ~exact: true ~opens
634
637
~raw Opens ~pos ~scope
@@ -647,7 +650,7 @@ and completionsGetTypeEnv2 ~debug (completions : Completion.t list) ~full ~opens
647
650
| {Completion. kind = Value typ ; env} :: _ -> Some (typ, env)
648
651
| {Completion. kind = ObjLabel typ ; env} :: _ -> Some (typ, env)
649
652
| {Completion. kind = Field ({typ} , _ ); env} :: _ -> Some (typ, env)
650
- | {Completion. kind = FollowContextPath ctxPath ; env} :: _ ->
653
+ | {Completion. kind = FollowContextPath (`Completable ctxPath ) ; env} :: _ ->
651
654
ctxPath
652
655
|> getCompletionsForContextPath ~debug ~full ~opens ~raw Opens ~pos ~env
653
656
~exact: true ~scope
0 commit comments