15 references to BackgroundAnalysisScope
Microsoft.CodeAnalysis.Features (10)
Diagnostics\Options\SolutionCrawlerOptionsStorage.cs (9)
17public static readonly PerLanguageOption2<BackgroundAnalysisScope> BackgroundAnalysisScopeOption = new( 18"dotnet_analyzer_diagnostics_scope", defaultValue: BackgroundAnalysisScope.Default, group: s_backgroundAnalysisOptionGroup, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<BackgroundAnalysisScope>()); 27/// Enables forced <see cref="BackgroundAnalysisScope.Minimal"/> scope when low VM is detected to improve performance. 34public static BackgroundAnalysisScope GetBackgroundAnalysisScope(this IGlobalOptionService globalOptions, string language) 38return BackgroundAnalysisScope.Minimal; 68return GetBackgroundAnalysisScope(globalOptions, language) == BackgroundAnalysisScope.FullSolution; 114analyzersFullSolutionAnalysisEnabled = GetBackgroundAnalysisScope(globalOptions, language) == BackgroundAnalysisScope.FullSolution; 128var analyzersDisabled = GetBackgroundAnalysisScope(globalOptions, language) == BackgroundAnalysisScope.None;
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
65if (!project.State.RunAnalyzers || globalOptions.GetBackgroundAnalysisScope(project.Language) == BackgroundAnalysisScope.None)
Microsoft.CodeAnalysis.Workspaces (5)
Shared\Extensions\BackgroundAnalysisScopeExtensions.cs (5)
11public static CompilerDiagnosticsScope ToEquivalentCompilerDiagnosticsScope(this BackgroundAnalysisScope backgroundAnalysisScope) 14BackgroundAnalysisScope.None => CompilerDiagnosticsScope.None, 15BackgroundAnalysisScope.VisibleFilesAndOpenFilesWithPreviouslyReportedDiagnostics => CompilerDiagnosticsScope.VisibleFilesAndOpenFilesWithPreviouslyReportedDiagnostics, 16BackgroundAnalysisScope.OpenFiles => CompilerDiagnosticsScope.OpenFiles, 17BackgroundAnalysisScope.FullSolution => CompilerDiagnosticsScope.FullSolution,