-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improvement: Match completions on union types #6129
Conversation
|""".stripMargin, | ||
compat = Map( | ||
"3" -> """|match | ||
|match (exhaustive) Option (2 cases) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might need to adjust the results for nightly Scala version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've ignored the tests for now, until we backport to Dotty.
Exhaustive match completion now works on union of case classes. Also improves the labels for match completion.
659e1d7
to
c508904
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
scalameta/metals#6074 scalameta/metals#6129 [Cherry-picked 4742d7d][modified]
closes scalameta/metals-feature-requests#371