Skip to content

Commit f41f781

Browse files
committed
version in compiler analysis is always ReScript v12+
1 parent 5d9c682 commit f41f781

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

analysis/src/CompletionBackEnd.ml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2244,12 +2244,7 @@ let rec processCompletable ~debug ~full ~scope ~env ~pos ~forHover completable =
22442244
| _ -> items)))
22452245
| CexhaustiveSwitch {contextPath; exprLoc} ->
22462246
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
22532248
let withExhaustiveItem ~cases ?(startIndex = 0) (c : Completion.t) =
22542249
(* We don't need to write out `switch` here since we know that's what the
22552250
user has already written. Just complete for the rest. *)

0 commit comments

Comments
 (0)