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

Add UnitTestingGlobalOptions to External Access to make global options accessible to Unit Testing #59070

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

tmat
Copy link
Member

@tmat tmat commented Jan 26, 2022

@tmat tmat requested a review from a team as a code owner January 26, 2022 00:42
@tmat
Copy link
Member Author

tmat commented Jan 26, 2022

@dotnet/roslyn-ide PTAL

@@ -33,6 +33,7 @@ internal UnitTestingRemoteHostClient(ServiceHubRemoteHostClient client, UnitTest
return new UnitTestingRemoteHostClient((ServiceHubRemoteHostClient)client, serviceDescriptors, callbackDispatchers);
}

[Obsolete("Use UnitTestingGlobalOptions.IsServiceHubProcessCoreClr instead")]
public static bool IsServiceHubProcessCoreClr(HostWorkspaceServices services)
{
var optionServices = services.GetRequiredService<IOptionService>();
Copy link
Member Author

Choose a reason for hiding this comment

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

This is problematic since we do not want global options to be accessed from remote workspace layer and potentially oop where they are not available.

@tmat tmat enabled auto-merge (squash) January 26, 2022 01:26
@tmat tmat merged commit ba2dc2b into dotnet:main Jan 26, 2022
@ghost ghost added this to the Next milestone Jan 26, 2022
@tmat tmat deleted the UTCore branch February 2, 2022 19:36
@RikkiGibson RikkiGibson modified the milestones: Next, 17.2.P1 Feb 4, 2022
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