Refactoring IDE0053 with preprocessor directives breaks compilation #74137
Labels
Area-IDE
Bug
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Version Used: Visual Studio 2022 17.9.6 or dotnet-format 5.1.250801, dotnet cli 8.0.204
Steps to Reproduce:
So the preprocessor directive is never closed, which breaks build and the else part is thrown out completely.
Diagnostic Id:
IDE0053
Expected Behavior:
Could produce something like this:
Actual Behavior:
Broken compilation, lost code.
The text was updated successfully, but these errors were encountered: