Skip to content
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

Support recommended completion for union #24326

Merged
2 commits merged into from
May 22, 2018
Merged

Conversation

ghost
Copy link

@ghost ghost commented May 22, 2018

Fixes #24304

@ghost ghost requested a review from sheetalkamat May 22, 2018 18:46
@ghost ghost force-pushed the completionsRecommended_union branch from 210d8b8 to 5d522b1 Compare May 22, 2018 18:46
{
marker: "b",
// Arbitrarily chooses one to be recommended
includes: [{ name: "E", isRecommended: true, }, { name: "E2" }],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not E2 to be recommended as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the original design (#20020) there can only be one recommended completion -- editors may be expecting this. We could add more than one but it would mean more work for editors and I think that's why we avoided it.

@ghost ghost merged commit 9cda2bd into master May 22, 2018
@ghost ghost deleted the completionsRecommended_union branch May 22, 2018 20:38
@microsoft microsoft locked and limited conversation to collaborators Jul 31, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants