Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add codefixer and completion provider to install OpenAPI package from extension methods #55963
Add codefixer and completion provider to install OpenAPI package from extension methods #55963
Changes from 9 commits
411d738
ab4bbe6
a3531f0
1a8c286
f92547b
63e2ba0
87be404
a4797f8
b1a4ecc
e9f6fba
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
@JamesNK Can I get your review on this given your experience implementing completion providers in route tooling?
The goal is to add completions for extension methods defined in a separate package then provide an installation codefix for them.
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.
It's been a minute since my head was in The Roslyn Zone. I'll do my best.
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.
Add a comment summarizing what the provider's deal is.
Does it replace completion for known types or are values from the completion provider added to the auto-complete? Replacing auto-complete for some types (if that's how it works) feels pretty invasive.
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.
The completion provider is additive (assuming I understand the intent of the
context.AddItem
method 😅 ) and is intended to augment the completions list with methods that we think might be helpful. I'll add a comment to this effect.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.
What happens if the value is already present in auto-complete? For example, someone might already have a reference to the OpenAPI package. Do they see the
AddOpenApi
option from built-in autocomplete and a item from this provider?Do items added by this provider look the same or different to other items? Could I see a screenshot?
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 excited! 🥳