15 references to BackgroundAnalysisScope
Microsoft.CodeAnalysis.Features (10)
Diagnostics\Options\SolutionCrawlerOptionsStorage.cs (9)
17
public 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.
34
public static
BackgroundAnalysisScope
GetBackgroundAnalysisScope(this IGlobalOptionService globalOptions, string language)
38
return
BackgroundAnalysisScope
.Minimal;
68
return GetBackgroundAnalysisScope(globalOptions, language) ==
BackgroundAnalysisScope
.FullSolution;
114
analyzersFullSolutionAnalysisEnabled = GetBackgroundAnalysisScope(globalOptions, language) ==
BackgroundAnalysisScope
.FullSolution;
128
var analyzersDisabled = GetBackgroundAnalysisScope(globalOptions, language) ==
BackgroundAnalysisScope
.None;
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
65
if (!project.State.RunAnalyzers || globalOptions.GetBackgroundAnalysisScope(project.Language) ==
BackgroundAnalysisScope
.None)
Microsoft.CodeAnalysis.Workspaces (5)
Shared\Extensions\BackgroundAnalysisScopeExtensions.cs (5)
11
public static CompilerDiagnosticsScope ToEquivalentCompilerDiagnosticsScope(this
BackgroundAnalysisScope
backgroundAnalysisScope)
14
BackgroundAnalysisScope
.None => CompilerDiagnosticsScope.None,
15
BackgroundAnalysisScope
.VisibleFilesAndOpenFilesWithPreviouslyReportedDiagnostics => CompilerDiagnosticsScope.VisibleFilesAndOpenFilesWithPreviouslyReportedDiagnostics,
16
BackgroundAnalysisScope
.OpenFiles => CompilerDiagnosticsScope.OpenFiles,
17
BackgroundAnalysisScope
.FullSolution => CompilerDiagnosticsScope.FullSolution,