Esempio n. 1
0
        private void ConfigForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            panel.OnClosing();

            data.CheckUpdatesOnStartup  = checkUpdates.Checked;
            data.UseEmbeddedEngine      = embeddedEngine.Checked;
            data.RestorePanelsAtStartup = restorePanels.Checked;
            data.ScriptsDir             = scriptsDir.Text;
            //data.UseRoslynProvider = useCS6.Checked;
            //all Roslyn individual config values are merged into RoslynIntellisense;
            data.UseRoslynProvider = CSScriptIntellisense.Config.Instance.RoslynIntellisense;
            data.VbSupportEnabled  = CSScriptIntellisense.Config.Instance.VbSupportEnabled;

            if (customEngine.Checked)
            {
                data.UseCustomEngine = customEngineLocation.Text;
            }
            else
            {
                data.UseCustomEngine = "";
                CSScriptHelper.SynchAutoclssDecorationSettings(useCS6.Checked);
            }

            Config.Instance.Save();
        }
Esempio n. 2
0
        void ConfigForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            panel.OnClosing();

            data.CheckUpdatesOnStartup  = checkUpdates.Checked;
            data.UseEmbeddedEngine      = embeddedEngine.Checked;
            data.RestorePanelsAtStartup = restorePanels.Checked;
            data.ScriptsDir             = scriptsDir.Text;
            data.VbSupportEnabled       = CSScriptIntellisense.Config.Instance.VbSupportEnabled;

            data.CustomEngineAsm   = customEngineLocation.Text;
            data.CustomSyntaxerAsm = customSyntaxerExe.Text;

            if (int.TryParse(syntaxerPort.Text, out int port))
            {
                data.CustomSyntaxerPort = port;
            }

            Runtime.Init();

            if (this.useCustomLauncher.Checked)
            {
                data.UseCustomLauncher = useCustomLauncherCmd.Text;
            }
            else
            {
                data.UseCustomLauncher = "";
            }

            if (!skipSavingConfig)
            {
                Config.Instance.Save();
            }
        }
Esempio n. 3
0
        private void ConfigForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            panel.OnClosing();

            data.CheckUpdatesOnStartup  = checkUpdates.Checked;
            data.UseEmbeddedEngine      = embeddedEngine.Checked;
            data.RestorePanelsAtStartup = restorePanels.Checked;
            data.ScriptsDir             = scriptsDir.Text;
            //data.UseRoslynProvider = useCS6.Checked;
            //all Roslyn individual config values are merged into RoslynIntellisense;
            data.UseRoslynProvider = CSScriptIntellisense.Config.Instance.RoslynIntellisense;
            data.VbSupportEnabled  = CSScriptIntellisense.Config.Instance.VbSupportEnabled;

            if (customEngine.Checked)
            {
                data.UseCustomEngine = customEngineLocation.Text;
            }
            else
            {
                data.UseCustomEngine = "";
                CSScriptHelper.SynchAutoclssDecorationSettings(useCS6.Checked);
            }

            data.CustomSyntaxer    = customSyntaxer.Checked;
            data.CustomSyntaxerExe = customSyntaxerExe.Text;
            if (int.TryParse(syntaxerPort.Text, out int port))
            {
                data.SyntaxerPort = port;
            }

            Bootstrapper.DeploySyntaxer();
            CSScriptIntellisense.Syntaxer.RestartServer();

            if (this.useCustomLauncher.Checked)
            {
                data.UseCustomLauncher = useCustomLauncherCmd.Text;
            }
            else
            {
                data.UseCustomLauncher = "";
            }

            if (!skipSavingConfig)
            {
                Config.Instance.Save();
            }
        }