-
Notifications
You must be signed in to change notification settings - Fork 323
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
Offer no suggestion for single constructor #5747
Conversation
@jdunkerley seems to be OK with this change. What do @4e6 and @hubertp 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.
So what about Pair.Value
? that takes two parameters, should that not be reported in suggestion DB either?
|
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 would probably limit this to a hardcoded Value
to avoid some unexpected behaviour. Up to you if you want to include that.
In general, the goal was that we wouldn't show a drop down for things with a single constructor as that (probably) isn't what we want. |
Pull Request Description
Resolving #5055 - avoid putting single constructor into suggestion database.
Important Notes
Another way to fix #5055 is to keep the single constructor information in the suggestion database and let the IDE filter that out.
Checklist
Please include the following checklist in your PR:
Scala,
style guides.