diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-09-15 19:16:03 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2015-09-15 22:11:41 +0300 |
commit | 364e0f74943ba821e64955d43271966f49aa589f (patch) | |
tree | a8166a5853d6456010ce90c4c06290ebd9158ec3 | |
parent | 7d9d6ab6cc2577634669ee1df6aa6a25536edb06 (diff) |
[Ide] Add user installed addins into the about dialog
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Core/SystemInformation.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Core/SystemInformation.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Core/SystemInformation.cs index 69e83d4d0b..bbf4868d2e 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Core/SystemInformation.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Core/SystemInformation.cs @@ -120,6 +120,17 @@ namespace MonoDevelop.Core Title = "Operating System", Description = sb.ToString () }; + + string userAddins = string.Join (Environment.NewLine, + AddinManager.Registry.GetModules (AddinSearchFlags.IncludeAddins | AddinSearchFlags.LatestVersionsOnly) + .Where (addin => addin.IsUserAddin && addin.Enabled) + .Select (addin => string.Format ("{0} {1}", addin.Name, addin.Version)) + ); + if (!string.IsNullOrEmpty (userAddins)) + yield return new SystemInformationSection () { + Title = "Enabled user installed addins", + Description = userAddins, + }; } internal static string GetReleaseId () |