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

Update code style layer to Microsoft.CodeAnalysis 3.3.1 #41096

Merged
merged 8 commits into from
Jan 27, 2020

Conversation

sharwell
Copy link
Member

@sharwell sharwell commented Jan 20, 2020

Attempting to load Microsoft.VisualStudio.CodingConventions via the diagnostic analyzer service causes conflicts with Visual Studio extensions that depend on the same assembly. See pharring/EditorGuidelines#21 for example. This change updates the code style layer to use the new .editorconfig support from the compiler exclusively, and removes the dependency on Microsoft.VisualStudio.CodingConventions.

Following this change, the NuGet-installed FormattingAnalyzer requires Roslyn 16.3 or newer.

@sharwell sharwell marked this pull request as ready for review January 21, 2020 21:46
@sharwell sharwell requested review from a team as code owners January 21, 2020 21:46
@sharwell sharwell changed the base branch from master to AddLangServiceSatelliteAssemblies-180725 January 21, 2020 21:46
@sharwell sharwell changed the base branch from AddLangServiceSatelliteAssemblies-180725 to master January 21, 2020 21:47
@sharwell sharwell closed this Jan 22, 2020
@sharwell sharwell reopened this Jan 22, 2020
@sharwell sharwell closed this Jan 22, 2020
@sharwell sharwell reopened this Jan 22, 2020
@sharwell sharwell closed this Jan 23, 2020
@sharwell sharwell reopened this Jan 23, 2020
@sharwell sharwell added PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. Area-IDE and removed PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. labels Jan 23, 2020

namespace Microsoft.CodeAnalysis
{
internal abstract class OptionSet
internal sealed class CompilerAnalyzerConfigOptions : AnalyzerConfigOptions
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this type being used anywhere now? Seems weird as its TryGetValue always returns false.

Copy link
Contributor

@mavasani mavasani left a comment

Choose a reason for hiding this comment

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

Great to see all the deleted code! Bit unfortunate we now need the #if CODE_STYLE in all the formatting related files.

Copy link
Contributor

@jmarolf jmarolf left a comment

Choose a reason for hiding this comment

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

:shipit:

@sharwell sharwell merged commit fed2d6e into dotnet:master Jan 27, 2020
@sharwell sharwell deleted the coding-conventions branch January 27, 2020 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants