예제 #1
0
        public void Load()
        {
            SurveyNewsCheck     = _pyService.LoadEnum <SurveyNewsPolicy>(SurveyNewsCheckSetting, GeneralCategory) ?? SurveyNewsPolicy.CheckOnceWeek;
            SurveyNewsLastCheck = _pyService.LoadDateTime(SurveyNewsLastCheckSetting, GeneralCategory) ?? DateTime.MinValue;
            SurveyNewsFeedUrl   = _pyService.LoadString(SurveyNewsFeedUrlSetting, GeneralCategory) ?? DefaultSurveyNewsFeedUrl;
            SurveyNewsIndexUrl  = _pyService.LoadString(SurveyNewsIndexUrlSetting, GeneralCategory) ?? DefaultSurveyNewsIndexUrl;
            ShowOutputWindowForVirtualEnvCreate    = _pyService.LoadBool(ShowOutputWindowForVirtualEnvCreateSetting, GeneralCategory) ?? true;
            ShowOutputWindowForPackageInstallation = _pyService.LoadBool(ShowOutputWindowForPackageInstallationSetting, GeneralCategory) ?? true;
            ElevatePip              = _pyService.LoadBool(ElevatePipSetting, GeneralCategory) ?? false;
            ElevateEasyInstall      = _pyService.LoadBool(ElevateEasyInstallSetting, GeneralCategory) ?? false;
            UnresolvedImportWarning = _pyService.LoadBool(UnresolvedImportWarningSetting, GeneralCategory) ?? true;
            ClearGlobalPythonPath   = _pyService.LoadBool(ClearGlobalPythonPathSetting, GeneralCategory) ?? true;


            AutoAnalyzeStandardLibrary             = _pyService.LoadBool(AutoAnalysisSetting, AdvancedCategory) ?? true;
            IndentationInconsistencySeverity       = _pyService.LoadEnum <Severity>(IndentationInconsistencySeveritySetting, AdvancedCategory) ?? Severity.Warning;
            UpdateSearchPathsWhenAddingLinkedFiles = _pyService.LoadBool(UpdateSearchPathsWhenAddingLinkedFilesSetting, AdvancedCategory) ?? true;
            var analysisLimit = _pyService.LoadString(CrossModuleAnalysisLimitSetting, AdvancedCategory);

            if (analysisLimit == null)
            {
                CrossModuleAnalysisLimit = 1300;    // default analysis limit
            }
            else if (analysisLimit == "-")
            {
                CrossModuleAnalysisLimit = null;
            }
            else
            {
                CrossModuleAnalysisLimit = Convert.ToInt32(analysisLimit);
            }
            Changed?.Invoke(this, EventArgs.Empty);
        }
예제 #2
0
        public void Load()
        {
            ShowOutputWindowForVirtualEnvCreate    = _pyService.LoadBool(ShowOutputWindowForVirtualEnvCreateSetting, GeneralCategory) ?? true;
            ShowOutputWindowForPackageInstallation = _pyService.LoadBool(ShowOutputWindowForPackageInstallationSetting, GeneralCategory) ?? true;
            PromptForEnvCreate                 = _pyService.LoadBool(PromptForEnvCreateSetting, GeneralCategory) ?? true;
            PromptForPackageInstallation       = _pyService.LoadBool(PromptForPackageInstallationSetting, GeneralCategory) ?? true;
            PromptForTestFrameWorkInfoBar      = _pyService.LoadBool(PromptForTestFrameWorkInfoBarSetting, GeneralCategory) ?? true;
            PromptForPythonVersionNotSupported = _pyService.LoadBool(PromptForPythonVersionNotSupportedInfoBarSetting, GeneralCategory) ?? true;

            ElevatePip = _pyService.LoadBool(ElevatePipSetting, GeneralCategory) ?? false;
            UnresolvedImportWarning = _pyService.LoadBool(UnresolvedImportWarningSetting, GeneralCategory) ?? true;
            InvalidEncodingWarning  = _pyService.LoadBool(InvalidEncodingWarningSetting, GeneralCategory) ?? true;
            ClearGlobalPythonPath   = _pyService.LoadBool(ClearGlobalPythonPathSetting, GeneralCategory) ?? true;

            AutoAnalyzeStandardLibrary             = _pyService.LoadBool(AutoAnalysisSetting, AdvancedCategory) ?? true;
            IndentationInconsistencySeverity       = _pyService.LoadEnum <Severity>(IndentationInconsistencySeveritySetting, AdvancedCategory) ?? Severity.Warning;
            UpdateSearchPathsWhenAddingLinkedFiles = _pyService.LoadBool(UpdateSearchPathsWhenAddingLinkedFilesSetting, AdvancedCategory) ?? true;
            var analysisLimit = _pyService.LoadString(CrossModuleAnalysisLimitSetting, AdvancedCategory);

            if (analysisLimit == null)
            {
                CrossModuleAnalysisLimit = 1300;    // default analysis limit
            }
            else if (analysisLimit == "-")
            {
                CrossModuleAnalysisLimit = null;
            }
            else
            {
                CrossModuleAnalysisLimit = Convert.ToInt32(analysisLimit);
            }
            Changed?.Invoke(this, EventArgs.Empty);
        }
예제 #3
0
 public void Load()
 {
     CompletionMode      = _pyService.LoadEnum <ReplIntellisenseMode>(CompletionModeSetting, _category) ?? ReplIntellisenseMode.DontEvaluateCalls;
     UseSmartHistory     = _pyService.LoadBool(UseSmartHistorySetting, _category) ?? true;
     LiveCompletionsOnly = _pyService.LoadBool(LiveCompletionsOnlySetting, _category) ?? false;
     Scripts             = _pyService.LoadString(ScriptsSetting, _category) ?? string.Empty;
     Changed?.Invoke(this, EventArgs.Empty);
 }
 public void Load()
 {
     PrimaryPrompt         = _pyService.LoadString(_id + PrimaryPromptSetting, _category) ?? DefaultPrompt;
     SecondaryPrompt       = _pyService.LoadString(_id + SecondaryPromptSetting, _category) ?? DefaultSecondaryPrompt;
     UseInterpreterPrompts = _pyService.LoadBool(_id + UseInterpreterPromptsSetting, _category) ?? true;
     ReplIntellisenseMode  = _pyService.LoadEnum <ReplIntellisenseMode>(_id + ReplIntellisenseModeSetting, _category) ?? ReplIntellisenseMode.DontEvaluateCalls;
     ReplSmartHistory      = _pyService.LoadBool(_id + SmartHistorySetting, _category) ?? true;
     LiveCompletionsOnly   = _pyService.LoadBool(_id + LiveCompletionsOnlySetting, _category) ?? false;
 }
예제 #5
0
        public void Load()
        {
            PromptBeforeRunningWithBuildError = !(_service.LoadBool(DontPromptBeforeRunningWithBuildErrorSetting, Category) ?? false);
            WaitOnAbnormalExit      = _service.LoadBool(WaitOnAbnormalExitSetting, Category) ?? true;
            WaitOnNormalExit        = _service.LoadBool(WaitOnNormalExitSetting, Category) ?? true;
            TeeStandardOutput       = _service.LoadBool(TeeStandardOutSetting, Category) ?? true;
            BreakOnSystemExitZero   = _service.LoadBool(BreakOnSystemExitZeroSetting, Category) ?? false;
            DebugStdLib             = _service.LoadBool(DebugStdLibSetting, Category) ?? false;
            ShowFunctionReturnValue = _service.LoadBool(ShowFunctionReturnValueSetting, Category) ?? true;

            // variable presentation
            VariablePresentationForClasses   = _service.LoadEnum <PresentationMode>(VariablePresentationForClassesSetting, Category) ?? VariablePresentation.DefaultPresentationMode;
            VariablePresentationForFunctions = _service.LoadEnum <PresentationMode>(VariablePresentationForFunctionsSetting, Category) ?? VariablePresentation.DefaultPresentationMode;
            VariablePresentationForProtected = _service.LoadEnum <PresentationMode>(VariablePresentationForProtectedSetting, Category) ?? VariablePresentation.DefaultPresentationMode;
            VariablePresentationForSpecial   = _service.LoadEnum <PresentationMode>(VariablePresentationForSpecialSetting, Category) ?? VariablePresentation.DefaultPresentationMode;

            Changed?.Invoke(this, EventArgs.Empty);
        }
예제 #6
0
 public void Load()
 {
     EnterCommitsIntellisense        = _service.LoadBool(EnterCommitsSetting, Category) ?? true;
     IntersectMembers                = _service.LoadBool(IntersectMembersSetting, Category) ?? false;
     AddNewLineAtEndOfFullyTypedWord = _service.LoadBool(NewLineAtEndOfWordSetting, Category) ?? false;
     CompletionCommittedBy           = _service.LoadString("CompletionCommittedBy", Category) ?? _defaultCompletionChars;
     EnterOutliningModeOnOpen        = _service.LoadBool(EnterOutlingModeOnOpenSetting, Category) ?? true;
     PasteRemovesReplPrompts         = _service.LoadBool(PasteRemovesReplPromptsSetting, Category) ?? true;
     FilterCompletions               = _service.LoadBool(FilterCompletionsSetting, Category) ?? true;
     SearchMode             = _service.LoadEnum <FuzzyMatchMode>(SearchModeSetting, Category) ?? FuzzyMatchMode.Default;
     ColorNames             = _service.LoadBool(ColorNamesSetting, Category) ?? true;
     ColorNamesWithAnalysis = _service.LoadBool(ColorNamesWithAnalysisSetting, Category) ?? true;
     AutoListIdentifiers    = _service.LoadBool(AutoListIdentifiersSetting, Category) ?? true;
 }