Ejemplo n.º 1
0
        private static IntegrationOptions GetOptions(DTE dte)
        {
            var options = cachedOptions;

            if (options != null)
            {
                return(options);
            }

            options = new IntegrationOptions
            {
                EnableSyntaxColoring    = GetGeneralOption(dte, "EnableSyntaxColoring", EnableSyntaxColoringDefaultValue),
                EnableOutlining         = GetGeneralOption(dte, "EnableOutlining", EnableOutliningDefaultValue),
                EnableIntelliSense      = GetGeneralOption(dte, "EnableIntelliSense", EnableIntelliSenseDefaultValue),
                EnableAnalysis          = GetGeneralOption(dte, "EnableAnalysis", EnableAnalysisDefaultValue),
                EnableTableAutoFormat   = GetGeneralOption(dte, "EnableTableAutoFormat", EnableTableAutoFormatDefaultValue),
                EnableStepMatchColoring = GetGeneralOption(dte, "EnableStepMatchColoring", EnableStepMatchColoringDefaultValue),
                EnableTracing           = GetGeneralOption(dte, "EnableTracing", EnableTracingDefaultValue),
                TracingCategories       = GetGeneralOption(dte, "TracingCategories", TracingCategoriesDefaultValue),
                TestRunnerTool          = GetGeneralOption(dte, "TestRunnerTool", TestRunnerToolDefaultValue),
                DisableRegenerateFeatureFilePopupOnConfigChange = GetGeneralOption(dte, "DisableRegenerateFeatureFilePopupOnConfigChange", DisableRegenerateFeatureFilePopupOnConfigChangeDefaultValue)
            };
            cachedOptions = options;
            return(options);
        }
Ejemplo n.º 2
0
        public static IntegrationOptions GetOptions(DTE dte)
        {
            IntegrationOptions options = new IntegrationOptions
            {
                EnableSyntaxColoring = GetGeneralOption <bool>(dte, "EnableSyntaxColoring", EnableSyntaxColoringDefaultValue),
                EnableOutlining      = GetGeneralOption <bool>(dte, "EnableOutlining", EnableOutliningDefaultValue),
                EnableIntelliSense   = GetGeneralOption <bool>(dte, "EnableIntelliSense", EnableIntelliSenseDefaultValue)
            };

            return(options);
        }
Ejemplo n.º 3
0
        private static IntegrationOptions GetOptions(DTE dte)
        {
            IntegrationOptions options = new IntegrationOptions
            {
                EnableSyntaxColoring  = GetGeneralOption <bool>(dte, "EnableSyntaxColoring", EnableSyntaxColoringDefaultValue),
                EnableOutlining       = GetGeneralOption <bool>(dte, "EnableOutlining", EnableOutliningDefaultValue),
                EnableIntelliSense    = GetGeneralOption <bool>(dte, "EnableIntelliSense", EnableIntelliSenseDefaultValue),
                EnableAnalysis        = GetGeneralOption <bool>(dte, "EnableAnalysis", EnableAnalysisDefaultValue),
                EnableTableAutoFormat = GetGeneralOption <bool>(dte, "EnableTableAutoFormat", EnableTableAutoFormatDefaultValue),
                EnableTracing         = GetGeneralOption <bool>(dte, "EnableTracing", EnableTracingDefaultValue),
                TracingCategories     = GetGeneralOption <string>(dte, "TracingCategories", TracingCategoriesDefaultValue),
            };

            return(options);
        }