-
Notifications
You must be signed in to change notification settings - Fork 805
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
New code fix: change equals in record field definition to colon #15456
Conversation
vsintegration/src/FSharp.Editor/CodeFixes/ChangeEqualsInFieldTypeToColon.fs
Outdated
Show resolved
Hide resolved
vsintegration/tests/FSharp.Editor.Tests/CodeFixes/ChangeEqualsInFieldTypeToColonTests.fs
Show resolved
Hide resolved
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.
See comment at codefix impl - the allocation path should be zero in case the diagnostic FS0010 is for something else.
Error FS0010 comes very often when typing for all sorts of reasons.
Can we use the same code fix to also make the fix in the opposite direction? When |
I'd keep it for a followup and maybe for a separate code fix. It would require different ParseTree logic. |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
vsintegration/src/FSharp.Editor/CodeFixes/ChangeEqualsInFieldTypeToColon.fs
Outdated
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
vsintegration/src/FSharp.Editor/CodeFixes/ChangeEqualsInFieldTypeToColon.fs
Outdated
Show resolved
Hide resolved
/azp run |
No commit pushedDate could be found for PR 15456 in repo dotnet/fsharp |
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Edgar Gonzalez <edgar.gonzalez@fundourselves.com> Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Petr <psfinaki@users.noreply.github.com> Co-authored-by: Vlad Zarytovskii <vzaritovsky@hotmail.com> fix: change equals in record field definition to colon (#15456)
fixes #15421
We started this code fix at the recent Amplifying F# session.
Change
to
Inspired by FsAutoComplete. :)