Closed ghostbuster91 closed 1 year ago
Since your example is using Scala 3 I'll add in that as of this pr these types of quick fixes can actually come right from the compiler. So in theory you could make a feature request there as well, and then anything using the newer versions of the compiler irregardless of client/Metals/IntelliJ would benefit from it.
Is your feature request related to a problem? Please describe.
Let's imagine that we have a following match statement over some ADT:
We then modify ADT by adding two more cases -
Double
andFloat
. Now, the compiler warns/emits error (depending on the project settings) that the match might not be exhaustive.Describe the solution you'd like
I would like to have a code action that can be invoked on the mentioned match statement, that, when accepted, would add missing cases with
???
as implementation.Describe alternatives you've considered
Write each missing case taking advantage from completions.
Additional context
No response
Search terms
code-action match case