File tree Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -1499,11 +1499,8 @@ let rec extractType ~env ~package (t : Types.type_expr) =
1499
1499
match t.desc with
1500
1500
| Tlink t1 | Tsubst t1 | Tpoly (t1 , [] ) -> extractType ~env ~package t1
1501
1501
| Tconstr (Path. Pident {name = "option" } , [payloadTypeExpr ], _ ) ->
1502
- (* Handle option. TODO: Look up how the compiler does this and copy that behavior. *)
1503
1502
Some (Toption (env, payloadTypeExpr))
1504
- | Tconstr (Path. Pident {name = "bool" } , [] , _ ) ->
1505
- (* Handle bool. TODO: Look up how the compiler does this and copy that behavior. *)
1506
- Some (Tbool env)
1503
+ | Tconstr (Path. Pident {name = "bool" } , [] , _ ) -> Some (Tbool env)
1507
1504
| Tconstr (path , _ , _ ) -> (
1508
1505
match References. digConstructor ~env ~package path with
1509
1506
| Some (env , {item = {decl = {type_manifest = Some t1 } } } ) ->
Original file line number Diff line number Diff line change @@ -149,8 +149,6 @@ let findArgCompletables ~(args : arg list) ~endPos ~posBeforeCursor
149
149
{contextPath; argumentLabel = Labelled labelled.name; prefix = " " })
150
150
else loop rest
151
151
| {label = None ; exp} :: rest ->
152
- (* TODO: Better guard for this... This is so completion does not trigger
153
- inside of template string calls, which are regular calls *)
154
152
if Res_parsetree_viewer. isTemplateLiteral exp then None
155
153
else if exp.pexp_loc |> Loc. hasPos ~pos: posBeforeCursor then
156
154
(* Completing in an unlabelled argument *)
Original file line number Diff line number Diff line change @@ -498,12 +498,6 @@ let locItemToString {loc = {Location.loc_start; loc_end}; locType} =
498
498
(* needed for debugging *)
499
499
let _ = locItemToString
500
500
501
- type polyVariantConstructor = {
502
- name : string ;
503
- payload : Types .type_expr option ;
504
- args : Types .type_expr list ;
505
- }
506
-
507
501
module Completable = struct
508
502
(* Completion context *)
509
503
type completionContext = Type | Value | Module | Field
You can’t perform that action at this time.
0 commit comments