Skip to content

Conversation

@Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented May 29, 2020

Fixes #44629

@CyrusNajmabadi, Opening Compilers.sln in Visual Studio makes my laptop hangs and unusable (perhaps because low specs and the solution is very big). So, I really cannot confirm if this fixes it.
I'll add relevant unit tests soon.

@Youssef1313 Youssef1313 requested a review from a team as a code owner May 29, 2020 14:12
@CyrusNajmabadi
Copy link
Member

Do you mean a comment linking the PR?

no. i mean a comment explaining why we don't want to remove parens here.

@Youssef1313
Copy link
Member Author

@CyrusNajmabadi There are test failures now after I moved the test down, can you check where is the problem? things are a bit hard for me to figure, especially that I can't open the sln in Visual Studio.

@CyrusNajmabadi
Copy link
Member

Yup, this test is failing:

Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.RemoveUnnecessaryParentheses.RemoveUnnecessaryExpressionParenthesesTests.TestStackAlloc [FAIL]

i can try to debug through later to see why.

@Youssef1313
Copy link
Member Author

Youssef1313 commented May 30, 2020

@CyrusNajmabadi, The unit test was just missing the $$ that indicates the cursor position. I fixed that and this is ready for review now.

@CyrusNajmabadi
Copy link
Member

Great, thanks!

@CyrusNajmabadi CyrusNajmabadi merged commit f74d449 into dotnet:master May 30, 2020
@ghost ghost added this to the Next milestone May 30, 2020
@Youssef1313 Youssef1313 deleted the patch-2 branch May 31, 2020 06:25
@jinujoseph jinujoseph added Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. labels Jun 1, 2020
@RikkiGibson RikkiGibson modified the milestones: Next, 16.7.P3 Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Visual studio suggests removing redundant parenthesis for spans that aren't redundant.

5 participants