Fill generated switch cases with %todo
Why
The exhaustive-switch and add-missing-cases code actions filled new cases with failwith("TODO"), but #9052 removed failwith, so the generated code no longer compiled. They now use %todo, as the exhaustive-switch completion already does.
modifiedFormat code action output
let f = (x: option<int>) => switch x { | Some(_) => 1 }rescript
Before
After
switch x {switch x {| None => failwith("TODO")| None => %todo| Some(_) => 1| Some(_) => 1}}
The deprecated-let changelog fragment no longer says that failwith and invalid_arg warn, since they are removed.