45 references to CompilerDiagnosticsScope
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
882
var
compilerDiagnosticsScope = analysisScope.ToEquivalentCompilerDiagnosticsScope();
Microsoft.CodeAnalysis.LanguageServer.Protocol (20)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (1)
210
return globalOptions.GetBackgroundCompilerAnalysisScope(project.Language) !=
CompilerDiagnosticsScope
.None;
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (6)
36
CompilerDiagnosticsScope
compilerDiagnosticsScope,
74
CompilerDiagnosticsScope
compilerDiagnosticsScope,
93
CompilerDiagnosticsScope
.None => false,
96
CompilerDiagnosticsScope
.VisibleFilesAndFilesWithPreviouslyReportedDiagnostics => isVisibleDocument || (isOpenDocument && !previousData.Items.IsEmpty),
99
CompilerDiagnosticsScope
.OpenFiles => isOpenDocument,
102
CompilerDiagnosticsScope
.FullSolution => true,
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
56
var
compilerDiagnosticsScope = GlobalOptions.GetBackgroundCompilerAnalysisScope(document.Project.Language);
Features\Options\SolutionCrawlerOptionsStorage.cs (12)
28
public static readonly PerLanguageOption2<
CompilerDiagnosticsScope
> CompilerDiagnosticsScopeOption = new(
29
"dotnet_compiler_diagnostics_scope", defaultValue:
CompilerDiagnosticsScope
.OpenFiles, serializer: EditorConfigValueSerializer.CreateSerializerForEnum<
CompilerDiagnosticsScope
>());
70
public static
CompilerDiagnosticsScope
GetBackgroundCompilerAnalysisScope(this IGlobalOptionService globalOptions, string language)
74
return
CompilerDiagnosticsScope
.VisibleFilesAndFilesWithPreviouslyReportedDiagnostics;
79
BackgroundAnalysisScope.ActiveFile =>
CompilerDiagnosticsScope
.VisibleFilesAndFilesWithPreviouslyReportedDiagnostics,
80
BackgroundAnalysisScope.OpenFiles =>
CompilerDiagnosticsScope
.OpenFiles,
81
BackgroundAnalysisScope.FullSolution =>
CompilerDiagnosticsScope
.FullSolution,
82
BackgroundAnalysisScope.None =>
CompilerDiagnosticsScope
.None,
95
return GetBackgroundCompilerAnalysisScope(globalOptions, language) ==
CompilerDiagnosticsScope
.FullSolution;
143
compilerFullSolutionAnalysisEnabled = GetBackgroundCompilerAnalysisScope(globalOptions, language) ==
CompilerDiagnosticsScope
.FullSolution;
157
var compilerDiagnosticsDisabled = GetBackgroundCompilerAnalysisScope(globalOptions, language) ==
CompilerDiagnosticsScope
.None;
Microsoft.CodeAnalysis.Workspaces (5)
Shared\Extensions\BackgroundAnalysisScopeExtensions.cs (5)
12
public static
CompilerDiagnosticsScope
ToEquivalentCompilerDiagnosticsScope(this BackgroundAnalysisScope backgroundAnalysisScope)
15
BackgroundAnalysisScope.None =>
CompilerDiagnosticsScope
.None,
16
BackgroundAnalysisScope.ActiveFile =>
CompilerDiagnosticsScope
.VisibleFilesAndFilesWithPreviouslyReportedDiagnostics,
17
BackgroundAnalysisScope.OpenFiles =>
CompilerDiagnosticsScope
.OpenFiles,
18
BackgroundAnalysisScope.FullSolution =>
CompilerDiagnosticsScope
.FullSolution,
Microsoft.VisualStudio.LanguageServices.CSharp (8)
Options\AdvancedOptionPageStrings.cs (8)
57
public static
CompilerDiagnosticsScope
Option_Compiler_Diagnostics_Scope_None_Tag
58
=>
CompilerDiagnosticsScope
.None;
60
public static
CompilerDiagnosticsScope
Option_Compiler_Diagnostics_Scope_Visible_Files_Tag
61
=>
CompilerDiagnosticsScope
.VisibleFilesAndFilesWithPreviouslyReportedDiagnostics;
63
public static
CompilerDiagnosticsScope
Option_Compiler_Diagnostics_Scope_Open_Files_Tag
64
=>
CompilerDiagnosticsScope
.OpenFiles;
66
public static
CompilerDiagnosticsScope
Option_Compiler_Diagnostics_Scope_Full_Solution_Tag
67
=>
CompilerDiagnosticsScope
.FullSolution;
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (3)
InProcess\WorkspaceInProcess.cs (3)
94
var
compilerScope = value ?
CompilerDiagnosticsScope
.FullSolution :
CompilerDiagnosticsScope
.OpenFiles;
Microsoft.VisualStudio.LanguageServices.VisualBasic (8)
Options\AdvancedOptionPageStrings.vb (8)
64
Public ReadOnly Property Option_Compiler_Diagnostics_Scope_None_Tag As
CompilerDiagnosticsScope
=
65
CompilerDiagnosticsScope
.None
67
Public ReadOnly Property Option_Compiler_Diagnostics_Scope_Visible_Files_Tag As
CompilerDiagnosticsScope
=
68
CompilerDiagnosticsScope
.VisibleFilesAndFilesWithPreviouslyReportedDiagnostics
70
Public ReadOnly Property Option_Compiler_Diagnostics_Scope_Open_Files_Tag As
CompilerDiagnosticsScope
=
71
CompilerDiagnosticsScope
.OpenFiles
73
Public ReadOnly Property Option_Compiler_Diagnostics_Scope_Full_Solution_Tag As
CompilerDiagnosticsScope
=
74
CompilerDiagnosticsScope
.FullSolution