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

Don't lift the result of getting a symbol use in the add open code fix #10594

Merged
merged 2 commits into from
Dec 7, 2020

Conversation

cartermp
Copy link
Contributor

@cartermp cartermp commented Dec 3, 2020

fixes #10533

This commit broke the code fixer: 3b294c4

Before, the call was asynchronous and so we lifted that into an option. It's no longer asynchronous, but the code compiled because asymcMaybe can also work with options. So the code was now lifting the result into an option, creating a Some(None) as the result. Because we assert that there is no symbol use, the code fixer would fail because Some(None) matches false for IsNone.

This removes the call to liftAsync, and also changes the CE to maybe because nothing is asynchronous.

@cartermp cartermp merged commit 1431e23 into dotnet:main Dec 7, 2020
@cartermp cartermp deleted the fix-opens-regression branch December 7, 2020 19:24
ScottHutchinson pushed a commit to ScottHutchinson/fsharp that referenced this pull request Dec 8, 2020
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Open codefix is broken in dogfood builds
2 participants