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);
 }
Exemple #2
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);
            }
        }
Exemple #3
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);
 }
Exemple #4
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 Load()
 {
     EnterCommitsIntellisense        = _service.LoadBool(EnterCommitsSetting, Category) ?? true;
     IntersectMembers                = _service.LoadBool(IntersectMembersSetting, Category) ?? false;
     AddNewLineAtEndOfFullyTypedWord = _service.LoadBool(NewLineAtEndOfWordSetting, Category) ?? false;
     CompletionCommittedBy           = _service.LoadString(CompletionCommittedBySetting, Category) ?? _defaultCompletionChars;
     if (CompletionCommittedBy == _oldDefaultCompletionChars)
     {
         CompletionCommittedBy = _defaultCompletionChars;
         _service.SaveString(CompletionCommittedBySetting, Category, CompletionCommittedBy);
     }
     EnterOutliningModeOnOpen = _service.LoadBool(EnterOutlingModeOnOpenSetting, Category) ?? true;
     PasteRemovesReplPrompts  = _service.LoadBool(PasteRemovesReplPromptsSetting, Category) ?? true;
     FilterCompletions        = _service.LoadBool(FilterCompletionsSetting, Category) ?? true;
     ColorNames             = _service.LoadBool(ColorNamesSetting, Category) ?? true;
     ColorNamesWithAnalysis = _service.LoadBool(ColorNamesWithAnalysisSetting, Category) ?? true;
     AutoListIdentifiers    = _service.LoadBool(AutoListIdentifiersSetting, Category) ?? true;
     Changed?.Invoke(this, EventArgs.Empty);
 }
 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);
 }
Exemple #7
0
        public void Save()
        {
            _pyService.SaveBool(ShowOutputWindowForVirtualEnvCreateSetting, GeneralCategory, ShowOutputWindowForVirtualEnvCreate);
            _pyService.SaveBool(ShowOutputWindowForPackageInstallationSetting, GeneralCategory, ShowOutputWindowForPackageInstallation);
            _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);
        }
 public void Save()
 {
     _service.SaveString(SwitchEvaluatorSetting, Category, SwitchEvaluator);
 }
Exemple #9
0
 public void Save()
 {
     _service.SaveString(SwitchEvaluatorSetting, Category, SwitchEvaluator);
     Changed?.Invoke(this, EventArgs.Empty);
 }
Exemple #10
0
 public void Save()
 {
     _service.SaveString(SuppressDialog.SwitchEvaluatorSetting, SuppressDialog.Category, SwitchEvaluator);
     _service.SaveString(SuppressDialog.PublishToAzure30Setting, SuppressDialog.Category, PublishToAzure30);
     Changed?.Invoke(this, EventArgs.Empty);
 }
Exemple #11
0
 public void Save()
 {
     _service.SaveString(CustomCondaExecutablePathSetting, Category, CustomCondaExecutablePath);
     Changed?.Invoke(this, EventArgs.Empty);
 }
Exemple #12
0
 public void Save()
 {
     _service.SaveBool(PasteRemovesReplPromptsSetting, Category, PasteRemovesReplPrompts);
     _service.SaveString(FormatterSetting, Category, Formatter);
     Changed?.Invoke(this, EventArgs.Empty);
 }
Exemple #13
0
 public void Save()
 {
     _pyService.SaveString(nameof(TypeShedPath), Category, TypeShedPath);
     Changed?.Invoke(this, EventArgs.Empty);
 }