File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -2244,12 +2244,7 @@ let rec processCompletable ~debug ~full ~scope ~env ~pos ~forHover completable =
2244
2244
| _ -> items)))
2245
2245
| CexhaustiveSwitch {contextPath; exprLoc} ->
2246
2246
let range = Utils. rangeOfLoc exprLoc in
2247
- let rescriptMajor, rescriptMinor = Packages. getReScriptVersion () in
2248
- let printFailwithStr num =
2249
- if (rescriptMajor = 11 && rescriptMinor > = 1 ) || rescriptMajor > = 12 then
2250
- " ${" ^ string_of_int num ^ " :%todo}"
2251
- else " ${" ^ string_of_int num ^ " :failwith(\" todo\" )}"
2252
- in
2247
+ let printFailwithStr num = " ${" ^ string_of_int num ^ " :%todo}" in
2253
2248
let withExhaustiveItem ~cases ?(startIndex = 0 ) (c : Completion.t ) =
2254
2249
(* We don't need to write out `switch` here since we know that's what the
2255
2250
user has already written. Just complete for the rest. *)
You can’t perform that action at this time.
0 commit comments