Skip to content

Commit

Permalink
Merge pull request #57252 from dotnet/merges/release/dev17.0-to-relea…
Browse files Browse the repository at this point in the history
…se/dev17.0-vs-deps

Merge release/dev17.0 to release/dev17.0-vs-deps
  • Loading branch information
RikkiGibson authored Oct 20, 2021
2 parents 711bb9f + b3cb966 commit 3a0930f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ internal UnitTestingRemoteHostClient(ServiceHubRemoteHostClient client, UnitTest
public static bool IsServiceHubProcessCoreClr(HostWorkspaceServices services)
{
var optionServices = services.GetRequiredService<IOptionService>();
return optionServices.GetOption(RemoteHostOptions.OOPCoreClr) || optionServices.GetOption(RemoteHostOptions.OOPCoreClrFeatureFlag);
return optionServices.GetOption(RemoteHostOptions.OOPCoreClrFeatureFlag);
}

public UnitTestingRemoteServiceConnectionWrapper<TService> CreateConnection<TService>(object? callbackTarget) where TService : class
Expand Down
11 changes: 3 additions & 8 deletions src/Workspaces/Remote/Core/RemoteHostOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,15 @@ internal sealed class RemoteHostOptions : IOptionProvider
new FeatureFlagStorageLocation("Roslyn.OOPServerGC"));

// use coreclr host for OOP
public static readonly Option2<bool> OOPCoreClr = new(
FeatureName, nameof(OOPCoreClr), defaultValue: false,
storageLocation: new LocalUserProfileStorageLocation(LocalRegistryPath + nameof(OOPCoreClr)));

public static readonly Option<bool> OOPCoreClrFeatureFlag = new(
FeatureName, nameof(OOPCoreClr), defaultValue: false,
new FeatureFlagStorageLocation("Roslyn.OOPCoreClr"));
FeatureName, nameof(OOPCoreClrFeatureFlag), defaultValue: false,
new FeatureFlagStorageLocation("Roslyn.ServiceHubCore"));

ImmutableArray<IOption> IOptionProvider.Options { get; } = ImmutableArray.Create<IOption>(
SolutionChecksumMonitorBackOffTimeSpanInMS,
OOP64Bit,
OOPServerGC,
OOPServerGCFeatureFlag,
OOPCoreClr,
OOPCoreClrFeatureFlag);

[ImportingConstructor]
Expand All @@ -77,7 +72,7 @@ public static bool IsUsingServiceHubOutOfProcess(IGlobalOptionService globalOpti
=> Environment.Is64BitOperatingSystem && globalOptions.GetOption(OOP64Bit);

public static bool IsServiceHubProcessCoreClr(IGlobalOptionService globalOptions)
=> globalOptions.GetOption(OOPCoreClr) || globalOptions.GetOption(OOPCoreClrFeatureFlag);
=> globalOptions.GetOption(OOPCoreClrFeatureFlag);

public static bool IsCurrentProcessRunningOnCoreClr()
=> !RuntimeInformation.FrameworkDescription.StartsWith(".NET Framework") &&
Expand Down

0 comments on commit 3a0930f

Please sign in to comment.