Open sk78v opened 5 years ago
@jcouv Moved back to Area-Compilers since this code is all in the core compiler
@sharwell Although the code is in the compiler project for convenience, this is not a priority for the compiler team, which primarily maintains the code for consuming (not producing) source code. Moving to our backlog. If this API is important to you we should talk about transferring ownership.
The issue is still there. It seems to happen only with MultiLineDocumentTrivia.
I'm not quite sure, but it could be just a missing case in Microsoft.CodeAnalysis.CSharp.Syntax.SyntaxNormalizer.NeedsLineBreakAfter.
@bernd5 neal is saying this is not a priority. SO we'd likely take a community fix, but we're not going to expend effort on any work here ourselves.
@CyrusNajmabadi for me this is not a big issue anymore - because I remove trivia completely now. But I could imagine that for other people it might be. Currently I'm quite busy, not sure if I have time for a contribution here.
Version Used: Please see the packages.config. Microsoft.CodeAnalysis packages 2.6.0 Steps to Reproduce: program.cs file
Expected Behavior: After calling NormalizeWhitespace() on the SyntaxNode, expecting the valid code to be written like this but the "If" statement is getting commented.
Actual Behavior: "If" statement is getting commented.