diff --git a/src/Features/Core/Portable/SolutionCrawler/WorkCoordinator.cs b/src/Features/Core/Portable/SolutionCrawler/WorkCoordinator.cs index 0c206df7b10272114a841c443db77aa4a4c38a31..b27ac3b033ac4c105416d6e30ab3acc02555cc08 100644 --- a/src/Features/Core/Portable/SolutionCrawler/WorkCoordinator.cs +++ b/src/Features/Core/Portable/SolutionCrawler/WorkCoordinator.cs @@ -164,6 +164,12 @@ private void OnOptionChanged(object sender, OptionChangedEventArgs e) return; } + if (!_optionService.GetOption(InternalSolutionCrawlerOptions.SolutionCrawler)) + { + // Bail out if solution crawler is disabled. + return; + } + ReanalyzeOnOptionChange(sender, e); }