-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
chore: Backport changes from Metals #19592
Conversation
) | ||
) | ||
val caseItems = | ||
if res.isEmpty then completionGenerator.caseKeywordOnly |
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.
If I understand correctly, the case
completion will only appear when there are no other candidates ? I think we can go one step further and make case keyword to always be added to the list. What do you think ?
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.
Here scalameta/metals#5346 (comment) we decided to only show case if there are no other completions
backports scalameta/metals#5346 [Cherry-picked f15bbda]
backports scalameta/metals#5346 [Cherry-picked f15bbda]
backports scalameta/metals#5346 [Cherry-picked f15bbda]
backports scalameta/metals#5346 [Cherry-picked f15bbda]
backports scalameta/metals#5346 [Cherry-picked f15bbda]
backports scalameta/metals#5346 [Cherry-picked f15bbda]
backports scalameta/metals#5346 [Cherry-picked f15bbda]
Backports #19592 to the LTS branch. PR submitted by the release tooling. [skip ci]
backports scalameta/metals#5346