Skip to content

Conversation

@psfinaki
Copy link
Contributor

Fixes #15890

I think this is the last addition to the code fix framework. A few code fixes can generate multiple suggestions, so here I add a notion of this. Technically we could generalize the existing interface (IFSharpCodeFixProvider), but I decided to create another one - to keep the intention clear and to not complicate the code for the majority of code fixes which do not need this.

Note, this used to work, but got broken here when we changed the equivalence key - it used to be the code fix message (different for suggestions) to the code fix name (same for suggestions). In fact, we don't need any equivalence key now - we don't have equivalent code fixes yet.

Demo:

multifix.mp4

@psfinaki psfinaki requested a review from a team as a code owner September 19, 2023 15:37
@psfinaki
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@psfinaki psfinaki enabled auto-merge (squash) September 20, 2023 10:09
@psfinaki psfinaki merged commit 4349bf7 into dotnet:main Sep 22, 2023
@psfinaki psfinaki deleted the codefixes-38 branch September 22, 2023 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

ReplaceWithSuggestion code fix suggests at max 1 thing

3 participants