Skip to content

Obsolete non-.editorconfig 'simplification options'. #40544

Merged
sharwell merged 10 commits intodotnet:masterfrom
CyrusNajmabadi:simplifyTypeNamesWork3
Jan 4, 2020
Merged

Obsolete non-.editorconfig 'simplification options'. #40544
sharwell merged 10 commits intodotnet:masterfrom
CyrusNajmabadi:simplifyTypeNamesWork3

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

@CyrusNajmabadi CyrusNajmabadi commented Dec 21, 2019

Followup to #40535. That should go in first.

These options are not actually controllable by the user. They add extra complexity in the simplification codepaths that we can remove.

It looks like at some point we received issues about bad simplification behavior. So we changed it, but added some options at the same time (perhaps in case we wanted to flip the behavior). However, these are not actually controllable in any meaningful way by the user, or exposed through our .editorconfig system. So they effectively encode legacy concerns that we don't need to keep around.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner December 21, 2019 05:45
@vatsalyaagrawal vatsalyaagrawal added Community The pull request was submitted by a contributor who is not a Microsoft employee. Area-IDE labels Dec 23, 2019
@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

@sharwell thoughts on this?

Comment thread src/Workspaces/VisualBasic/Portable/Extensions/ExpressionSyntaxExtensions.vb Outdated
Comment thread src/Workspaces/VisualBasic/Portable/Extensions/ExpressionSyntaxExtensions.vb Outdated
Comment thread src/Workspaces/Core/Portable/Simplification/SimplificationOptions.cs Outdated
@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

@sharwell This is ready to go in. Thanks! :)

@sharwell
Copy link
Copy Markdown
Contributor

sharwell commented Jan 3, 2020

@jasonmalinowski to confirm that this should not be blocked on design review

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

Thanks!

@CyrusNajmabadi CyrusNajmabadi deleted the simplifyTypeNamesWork3 branch January 5, 2020 03:46
@jinujoseph jinujoseph added this to the 16.5.P2 milestone Jan 5, 2020
' Failfast Conditions
If Not optionSet.GetOption(SimplificationOptions.PreferImplicitTypeInLocalDeclaration) OrElse
variableDeclarator.AsClause Is Nothing OrElse
Not variableDeclarator.Parent.IsKind(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These options were available to users - they're on the publicly shipped API. I was using this to workaround #43123 so I guess now's a good time to fix that. I'll open a PR.

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.

5 participants