Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 169d349

Browse files
author
Rodrigo Moya
committed
[Core] Initialize FeatureSwitchService on the common Runtime init
1 parent cd261f3 commit 169d349

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

main/src/core/MonoDevelop.Core/MonoDevelop.Core.FeatureConfiguration/FeatureSwitchService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static class FeatureSwitchService
3737
{
3838
static Dictionary<string, FeatureSwitch> featureSwitches = new Dictionary<string, FeatureSwitch> ();
3939

40-
static FeatureSwitchService ()
40+
internal static void Initialize ()
4141
{
4242
AddinManager.AddExtensionNodeHandler ("/MonoDevelop/Core/FeatureSwitches", HandleFeatureSwitchExtension);
4343
}

main/src/core/MonoDevelop.Core/MonoDevelop.Core/Runtime.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
using Mono.Addins.Setup;
4343
using MonoDevelop.Core.Assemblies;
4444
using MonoDevelop.Core.Execution;
45+
using MonoDevelop.Core.FeatureConfiguration;
4546
using MonoDevelop.Core.Instrumentation;
4647
using MonoDevelop.Core.Setup;
4748
using MonoDevelop.Core.Web;
@@ -144,6 +145,9 @@ public static void Initialize (bool updateAddinRegistry)
144145
systemAssemblyService = new SystemAssemblyService ();
145146
systemAssemblyService.Initialize ();
146147
LoadMSBuildLibraries ();
148+
149+
// Initialize extra services
150+
FeatureSwitchService.Initialize ();
147151

148152
initialized = true;
149153

0 commit comments

Comments
 (0)