/// <inheritdoc />
        public override void Initialize(InitializationContext context)
        {
            if (IsInitialized)
            {
                throw new InvalidOperationException("Cannot initialize the debugger a second time.");
            }

            ExtensionHost = context.Host;
            ExtensionHost.ControlManager.ResolveToolWindow += ControlManager_ResolveToolWindow;

            try { Settings = DebuggerBaseSettings.LoadSettings(ExtensionHost.SettingsManager); }
            catch { ResetSettings(); }

            MuiProcessor = new MuiProcessor(ExtensionHost,
                                            new FilePath(typeof(DebuggerBase).Assembly.Location).ParentDirectory.Combine("Mui").FullPath);

            InitializeToolWindows();

            if (context.InitializationTime == InitializationTime.Startup)
            {
                ExtensionHost.Initialized += ExtensionHost_Initialized;
            }
            else
            {
                ExtensionHost_Initialized(ExtensionHost, EventArgs.Empty);
            }

            IsInitialized = true;
        }
 static DebuggerBaseSettings()
 {
     Default = new DebuggerBaseSettings(_defaultPath);
 }
Exemple #3
0
 static DebuggerBaseSettings()
 {
     Default = new DebuggerBaseSettings(_defaultPath);
 }