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 CodeStylePage EditorConfigOptionsGenerator service #69425

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

beccamc
Copy link
Contributor

@beccamc beccamc commented Aug 7, 2023

Fix the Code style options page for C# and VB.

image

@beccamc beccamc requested a review from a team as a code owner August 7, 2023 19:47
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 7, 2023
@beccamc beccamc changed the title Fix CodeStylePage editorconfig service Fix CodeStylePage EditorConfigOptionsGenerator service Aug 7, 2023
@CyrusNajmabadi
Copy link
Member

Would love an integration test here. clearly things are def fragile.

@@ -23,7 +18,8 @@ internal class CodeStylePage : AbstractOptionPage
{
protected override AbstractOptionPageControl CreateOptionPage(IServiceProvider serviceProvider, OptionStore optionStore)
{
var editorService = (EditorConfigOptionsGenerator)serviceProvider.GetService(typeof(EditorConfigOptionsGenerator));
var editorService = serviceProvider.GetMefService<EditorConfigOptionsGenerator>();
Copy link
Member

Choose a reason for hiding this comment

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

do we need test added for this going forward?

@beccamc
Copy link
Contributor Author

beccamc commented Aug 10, 2023

Going to work offline with Sam for adding a test.

@beccamc beccamc enabled auto-merge (squash) August 10, 2023 20:03
@beccamc beccamc merged commit 26d92fc into dotnet:main Aug 10, 2023
24 checks passed
@ghost ghost added this to the Next milestone Aug 10, 2023
@dibarbet dibarbet modified the milestones: Next, 17.8 P2 Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants