Ejemplo n.º 1
0
 public void Save()
 {
     _pyService.SaveString(nameof(TypeShedPath), Category, TypeShedPath);
     _pyService.SaveBool(nameof(SuppressTypeShed), Category, SuppressTypeShed);
     _pyService.SaveBool(nameof(ServerDisabled), Category, ServerDisabled);
     Changed?.Invoke(this, EventArgs.Empty);
 }
Ejemplo n.º 2
0
 public void Save()
 {
     _pyService.SaveEnum(CompletionModeSetting, _category, CompletionMode);
     _pyService.SaveBool(UseSmartHistorySetting, _category, UseSmartHistory);
     _pyService.SaveBool(LiveCompletionsOnlySetting, _category, LiveCompletionsOnly);
     _pyService.SaveString(ScriptsSetting, _category, Scripts);
     Changed?.Invoke(this, EventArgs.Empty);
 }
 public void Save()
 {
     _pyService.SaveString(_id + PrimaryPromptSetting, _category, PrimaryPrompt);
     _pyService.SaveString(_id + SecondaryPromptSetting, _category, SecondaryPrompt);
     _pyService.SaveBool(_id + UseInterpreterPromptsSetting, _category, UseInterpreterPrompts);
     _pyService.SaveEnum <ReplIntellisenseMode>(_id + ReplIntellisenseModeSetting, _category, ReplIntellisenseMode);
     _pyService.SaveBool(_id + SmartHistorySetting, _category, ReplSmartHistory);
     _pyService.SaveBool(_id + LiveCompletionsOnlySetting, _category, LiveCompletionsOnly);
 }
Ejemplo n.º 4
0
        public void Save()
        {
            var changed = _service.SaveBool(CompleteFunctionParensSetting, Category, CompleteFunctionParens);

            changed |= _service.SaveBool(AutoImportCompletionsSetting, Category, AutoImportCompletions);
            if (changed)
            {
                Changed?.Invoke(this, EventArgs.Empty);
            }
        }
Ejemplo n.º 5
0
        public void Save()
        {
            var changed = _service.SaveBool(nameof(AutoSearchPaths), Category, AutoSearchPaths);

            changed |= _service.SaveString(nameof(DiagnosticMode), Category, DiagnosticMode);
            changed |= _service.SaveString(nameof(LogLevel), Category, LogLevel);
            changed |= _service.SaveString(nameof(StubPath), Category, StubPath);
            changed |= _service.SaveString(nameof(TypeCheckingMode), Category, TypeCheckingMode);
            changed |= _service.SaveMultilineString(nameof(TypeshedPaths), Category, TypeshedPaths);
            changed |= _service.SaveMultilineString(nameof(ExtraPaths), Category, ExtraPaths);
            changed |= _service.SaveBool(nameof(UseLibraryCodeForTypes), Category, UseLibraryCodeForTypes);
            if (changed)
            {
                Changed?.Invoke(this, EventArgs.Empty);
            }
        }
Ejemplo n.º 6
0
 public void Save()
 {
     _service.SaveBool(EnterCommitsSetting, Category, EnterCommitsIntellisense);
     _service.SaveBool(IntersectMembersSetting, Category, IntersectMembers);
     _service.SaveBool(NewLineAtEndOfWordSetting, Category, AddNewLineAtEndOfFullyTypedWord);
     _service.SaveString(CompletionCommittedBySetting, Category, CompletionCommittedBy);
     _service.SaveBool(EnterOutlingModeOnOpenSetting, Category, EnterOutliningModeOnOpen);
     _service.SaveBool(PasteRemovesReplPromptsSetting, Category, PasteRemovesReplPrompts);
     _service.SaveBool(FilterCompletionsSetting, Category, FilterCompletions);
     _service.SaveBool(ColorNamesSetting, Category, ColorNames);
     _service.SaveBool(ColorNamesWithAnalysisSetting, Category, ColorNamesWithAnalysis);
     _service.SaveBool(AutoListIdentifiersSetting, Category, AutoListIdentifiers);
     Changed?.Invoke(this, EventArgs.Empty);
 }
Ejemplo n.º 7
0
 public void Save()
 {
     _service.SaveBool(DontPromptBeforeRunningWithBuildErrorSetting, Category, !PromptBeforeRunningWithBuildError);
     _service.SaveBool(WaitOnAbnormalExitSetting, Category, WaitOnAbnormalExit);
     _service.SaveBool(WaitOnNormalExitSetting, Category, WaitOnNormalExit);
     _service.SaveBool(TeeStandardOutSetting, Category, TeeStandardOutput);
     _service.SaveBool(BreakOnSystemExitZeroSetting, Category, BreakOnSystemExitZero);
     _service.SaveBool(DebugStdLibSetting, Category, DebugStdLib);
     _service.SaveBool(ShowFunctionReturnValueSetting, Category, ShowFunctionReturnValue);
     _service.SaveBool(UseLegacyDebuggerSetting, Category, UseLegacyDebugger);
     Changed?.Invoke(this, EventArgs.Empty);
 }
Ejemplo n.º 8
0
 public void Save()
 {
     _pyService.SaveBool(ShowOutputWindowForVirtualEnvCreateSetting, GeneralCategory, ShowOutputWindowForVirtualEnvCreate);
     _pyService.SaveBool(ShowOutputWindowForPackageInstallationSetting, GeneralCategory, ShowOutputWindowForPackageInstallation);
     _pyService.SaveBool(PromptForEnvCreateSetting, GeneralCategory, PromptForEnvCreate);
     _pyService.SaveBool(PromptForPackageInstallationSetting, GeneralCategory, PromptForPackageInstallation);
     _pyService.SaveBool(PromptForTestFrameWorkInfoBarSetting, GeneralCategory, PromptForTestFrameWorkInfoBar);
     _pyService.SaveBool(PromptForPythonVersionNotSupportedInfoBarSetting, GeneralCategory, PromptForPythonVersionNotSupported);
     _pyService.SaveBool(ElevatePipSetting, GeneralCategory, ElevatePip);
     Changed?.Invoke(this, EventArgs.Empty);
 }
Ejemplo n.º 9
0
 public void Save()
 {
     _pyService.SaveBool(ShowOutputWindowForVirtualEnvCreateSetting, GeneralCategory, ShowOutputWindowForVirtualEnvCreate);
     _pyService.SaveBool(ShowOutputWindowForPackageInstallationSetting, GeneralCategory, ShowOutputWindowForPackageInstallation);
     _pyService.SaveBool(PromptForEnvCreateSetting, GeneralCategory, PromptForEnvCreate);
     _pyService.SaveBool(PromptForPackageInstallationSetting, GeneralCategory, PromptForPackageInstallation);
     _pyService.SaveBool(PromptForTestFrameWorkInfoBarSetting, GeneralCategory, PromptForTestFrameWorkInfoBar);
     _pyService.SaveBool(ElevatePipSetting, GeneralCategory, ElevatePip);
     _pyService.SaveBool(UnresolvedImportWarningSetting, GeneralCategory, UnresolvedImportWarning);
     _pyService.SaveBool(ClearGlobalPythonPathSetting, GeneralCategory, ClearGlobalPythonPath);
     _pyService.SaveBool(AutoAnalysisSetting, AdvancedCategory, AutoAnalyzeStandardLibrary);
     _pyService.SaveBool(UpdateSearchPathsWhenAddingLinkedFilesSetting, AdvancedCategory, UpdateSearchPathsWhenAddingLinkedFiles);
     _pyService.SaveEnum(IndentationInconsistencySeveritySetting, AdvancedCategory, _indentationInconsistencySeverity);
     if (CrossModuleAnalysisLimit != null)
     {
         _pyService.SaveInt(CrossModuleAnalysisLimitSetting, AdvancedCategory, CrossModuleAnalysisLimit.Value);
     }
     else
     {
         _pyService.SaveString(CrossModuleAnalysisLimitSetting, AdvancedCategory, "-");
     }
     Changed?.Invoke(this, EventArgs.Empty);
 }
Ejemplo n.º 10
0
 public void Save()
 {
     _service.SaveBool(DontPromptBeforeRunningWithBuildErrorSetting, Category, !PromptBeforeRunningWithBuildError);
     _service.SaveBool(WaitOnAbnormalExitSetting, Category, WaitOnAbnormalExit);
     _service.SaveBool(WaitOnNormalExitSetting, Category, WaitOnNormalExit);
     _service.SaveBool(TeeStandardOutSetting, Category, TeeStandardOutput);
     _service.SaveBool(BreakOnSystemExitZeroSetting, Category, BreakOnSystemExitZero);
     _service.SaveBool(DebugStdLibSetting, Category, DebugStdLib);
 }
Ejemplo n.º 11
0
        private void Trust(string action, bool trust, bool persist)
        {
            Logger?.LogEvent(
                PythonLogEvent.UntrustedWorkspaceInfoBar,
                new PythonVersionNotSupportedInfoBarInfo {
                Action = action
            }
                );

            _workspace.IsTrusted = trust;
            if (persist)
            {
                _pts.SaveBool(_workspace.Location, _trustedWorkspacesCategory, true);
            }
            Close();
        }
Ejemplo n.º 12
0
        public void Save()
        {
            _service.SaveBool(DontPromptBeforeRunningWithBuildErrorSetting, Category, !PromptBeforeRunningWithBuildError);
            _service.SaveBool(WaitOnAbnormalExitSetting, Category, WaitOnAbnormalExit);
            _service.SaveBool(WaitOnNormalExitSetting, Category, WaitOnNormalExit);
            _service.SaveBool(TeeStandardOutSetting, Category, TeeStandardOutput);
            _service.SaveBool(BreakOnSystemExitZeroSetting, Category, BreakOnSystemExitZero);
            _service.SaveBool(DebugStdLibSetting, Category, DebugStdLib);
            _service.SaveBool(ShowFunctionReturnValueSetting, Category, ShowFunctionReturnValue);
            _service.SaveBool(UseLegacyDebuggerSetting, Category, UseLegacyDebugger);

            // variable presentation
            _service.SaveEnum <PresentationMode>(VariablePresentationForClassesSetting, Category, VariablePresentationForClasses);
            _service.SaveEnum <PresentationMode>(VariablePresentationForFunctionsSetting, Category, VariablePresentationForFunctions);
            _service.SaveEnum <PresentationMode>(VariablePresentationForProtectedSetting, Category, VariablePresentationForProtected);
            _service.SaveEnum <PresentationMode>(VariablePresentationForSpecialSetting, Category, VariablePresentationForSpecial);

            Changed?.Invoke(this, EventArgs.Empty);
        }
Ejemplo n.º 13
0
        public void Save()
        {
            _pyService.SaveEnum(SurveyNewsCheckSetting, GeneralCategory, SurveyNewsCheck);
            _pyService.SaveDateTime(SurveyNewsLastCheckSetting, GeneralCategory, SurveyNewsLastCheck);
            _pyService.SaveBool(ShowOutputWindowForVirtualEnvCreateSetting, GeneralCategory, ShowOutputWindowForVirtualEnvCreate);
            _pyService.SaveBool(ShowOutputWindowForPackageInstallationSetting, GeneralCategory, ShowOutputWindowForPackageInstallation);
            _pyService.SaveBool(ElevatePipSetting, GeneralCategory, ElevatePip);
            _pyService.SaveBool(ElevateEasyInstallSetting, GeneralCategory, ElevateEasyInstall);
            _pyService.SaveBool(UnresolvedImportWarningSetting, GeneralCategory, UnresolvedImportWarning);
            _pyService.SaveBool(ClearGlobalPythonPathSetting, GeneralCategory, ClearGlobalPythonPath);

            _pyService.SaveBool(AutoAnalysisSetting, AdvancedCategory, AutoAnalyzeStandardLibrary);
            _pyService.SaveBool(UpdateSearchPathsWhenAddingLinkedFilesSetting, AdvancedCategory, UpdateSearchPathsWhenAddingLinkedFiles);
            _pyService.SaveEnum(IndentationInconsistencySeveritySetting, AdvancedCategory, _indentationInconsistencySeverity);
            if (CrossModuleAnalysisLimit != null)
            {
                _pyService.SaveInt(CrossModuleAnalysisLimitSetting, AdvancedCategory, CrossModuleAnalysisLimit.Value);
            }
            else
            {
                _pyService.SaveString(CrossModuleAnalysisLimitSetting, AdvancedCategory, "-");
            }
        }
Ejemplo n.º 14
0
 public void Save()
 {
     _service.SaveBool(PasteRemovesReplPromptsSetting, Category, PasteRemovesReplPrompts);
     _service.SaveString(FormatterSetting, Category, Formatter);
     Changed?.Invoke(this, EventArgs.Empty);
 }
Ejemplo n.º 15
0
 public void Save()
 {
     _service.SaveBool(IncludeAnalysisLogsSetting, Category, IncludeAnalysisLogs);
     Changed?.Invoke(this, EventArgs.Empty);
 }