-
Notifications
You must be signed in to change notification settings - Fork 333
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
bugfix: match completions for type aliases scala 3 #5714
Conversation
@@ -734,4 +734,52 @@ class CompletionMatchSuite extends BaseCompletionSuite { | |||
filter = _.contains("exhaustive"), | |||
) | |||
|
|||
checkEdit( |
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.
These cases already seem to work for Scala 2 (with Animal
being sealed type hierarchy instead of enum
). Would it be worth it to add unit tests for it as well (or maybe there are already some)? 🙂
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.
For case
completions I think you need to change it also here https://github.com/scalameta/metals/pull/5714/files#diff-8cca6f591058d93dae851ed5830ec69c9172cb020410921fe8dddff10d3d8e9eR153
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.
Thanks for doing this!
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.
Thank you for adding Scala 2 tests. 👍
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
metals backport: scalameta/metals#5714 CC: @tgodzik
resolves: #5712