예제 #1
0
 /// <summary>
 /// Ensures that the debugger base extension is loaded into LiteDevelop.
 /// </summary>
 /// <param name="manager">The extension manager to use for loading the base if needed.</param>
 public static void EnsureBaseIsLoaded(IExtensionManager manager)
 {
     if (manager.GetLoadedExtension <DebuggerBase>() == null)
     {
         var result = manager.LoadExtension(typeof(DebuggerBase));
         if (!result.SuccesfullyLoaded)
         {
             throw result.Error;
         }
     }
 }