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

Fix CodingConventions support in 17.10 #125

Merged

Conversation

pharring
Copy link
Owner

This PR changes the way we read Coding Conventions (from .editorconfig) for Dev 17.
We were previously using the Microsoft.VisualStudio.CodingConventions NuGet and assuming that the implementation assembly is installed with Visual Studio. However, that assembly has been removed in 17.10 preview 1 and we need to come up with an alternative.
I split the implementations between Dev 17 and previous versions (Dev 15 and Dev 16) by introducing my own CodingConventions helper class. Each VSIX has its own implementation. The down-level version just re-implements the existing code.
The new, Dev17 implementation, uses IEditorOptions to fetch the "CodingConventionsSnapshot" dictionary containing .editorconfig settings.

The CodingConventionsSnapshot was introduced in version 17.6 of Visual Studio 2022. I haven't changed the minimum install version of this extension, though. So, technically, the extension will install on, say 17.5, but .editorconfig support will be lacking.

pharring and others added 4 commits January 26, 2024 18:52
Because VS 2019 doesn't support dotnet 8 and VS 2022 doesn't install dotnet 7
Let each version pick the latest supported SDK.
@pharring pharring merged commit c6edb6f into main Jan 27, 2024
2 checks passed
@pharring pharring deleted the dev/pharring/UseEditorOptionsInsteadOfCodingConventions branch January 27, 2024 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant