public override void Initialize(InitializationContext context)
        {
            ExtensionHost = context.Host;

            try
            {
                Settings = CodeEditorSettings.LoadSettings(context.Host.SettingsManager);
            }
            catch
            {
                Settings = new CodeEditorSettings();
            }

            SetupGui();
            // SetupTemplates();
        }
Beispiel #2
0
        public override void Initialize(ILiteExtensionHost extensionHost)
        {
            ExtensionHost = extensionHost;

            try
            {
                Settings = CodeEditorSettings.LoadSettings(extensionHost.SettingsManager);
            }
            catch
            {
                Settings = CodeEditorSettings.Default.Clone() as CodeEditorSettings;
            }

            SetupGui();
            SetupTemplates();
        }
 static CodeEditorSettings()
 {
     Default = new CodeEditorSettings(_defaultPath);
 }
 static CodeEditorSettings()
 {
     Default = new CodeEditorSettings(_defaultPath);
 }
        public override void Initialize(InitializationContext context)
        {
            ExtensionHost = context.Host;

            try
            {
                Settings = CodeEditorSettings.LoadSettings(context.Host.SettingsManager);
            }
            catch
            {
                Settings = new CodeEditorSettings();
            }

            SetupGui();
            // SetupTemplates();
        }