Skip to content

Refactoring and tests for the ConvertCSharpLambdaToFSharpLambda code fix #15472

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

Merged
merged 3 commits into from
Jun 27, 2023

Conversation

psfinaki
Copy link
Member

@psfinaki psfinaki commented Jun 22, 2023

related: #15059

Migrating the code fix to the code fix framework.

@baronfel since you are the author of the original code fix in FSAutoComplete (this PR), do you know what F# code could trigger FS0043 and make use of this code fix? I have looked through that PR and this PR and the code but cannot find anything applicable.

@psfinaki psfinaki requested a review from a team as a code owner June 22, 2023 15:34
@psfinaki
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@psfinaki psfinaki added this to the June-2023 milestone Jun 23, 2023
@psfinaki
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@psfinaki psfinaki linked an issue Jun 23, 2023 that may be closed by this pull request
@baronfel
Copy link
Member

@psfinaki I haven't seen any F# code that might trigger this, no :( It's possible that F# code might define or use an => or op_EqualsGreater member, but then using that member wouldn't trigger FS0043 necessarily.

@psfinaki
Copy link
Member Author

@baronfel alright, thanks! Yeah I played with that a bit and didn't get FS0043 triggered in the right way.
I will remove the diagnostic from this codefix then - we can add it back (together with some tests) if we find a case.

@psfinaki psfinaki enabled auto-merge (squash) June 26, 2023 14:35
@psfinaki
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@psfinaki
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@psfinaki psfinaki disabled auto-merge June 26, 2023 15:25
@psfinaki psfinaki closed this Jun 26, 2023
@psfinaki psfinaki reopened this Jun 26, 2023
@psfinaki psfinaki enabled auto-merge (squash) June 27, 2023 11:15
@psfinaki psfinaki merged commit 0b1402b into dotnet:main Jun 27, 2023
@psfinaki psfinaki deleted the codefixes-8 branch June 27, 2023 17:00
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.

Add tests for codefixes
4 participants